mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
qcacld-3.0: Fix TSO seg cookie init crash
In one of the recent fixes, we are setting the TSO seg contents to zero when the segment is added back to the free list. The segment cookie is not re-initalized at this point. Hence, when this segment is re-allocated, it fails the cookie check and there is a system crash. Fix the issue by reinitializing the segment cookie after zero-ing out its contents. Change-Id: I7947e3ce4f80f1b19ebf5ef73ff75dee19ec7364 CRs-Fixed: 2011786
This commit is contained in:
parent
c3b069bca5
commit
f9f659735a
1 changed files with 1 additions and 0 deletions
|
|
@ -825,6 +825,7 @@ void ol_tso_free_segment(struct ol_txrx_pdev_t *pdev,
|
|||
qdf_mem_zero(tso_seg, sizeof(*tso_seg));
|
||||
tso_seg->next = pdev->tso_seg_pool.freelist;
|
||||
tso_seg->on_freelist = 1;
|
||||
tso_seg->cookie = TSO_SEG_MAGIC_COOKIE;
|
||||
pdev->tso_seg_pool.freelist = tso_seg;
|
||||
pdev->tso_seg_pool.num_free++;
|
||||
qdf_spin_unlock_bh(&pdev->tso_seg_pool.tso_mutex);
|
||||
|
|
|
|||
Loading…
Reference in a new issue