mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacmn: Free nbuf on bpr disabled case only
If tx capture, sniffer are not enabled, mgmt nbuf is freed. It is causing use-after-free in bpr enabled case Added change to free only when bpr is disabled Change-Id: Ia56254ca371cd9fbc21f5d58fac7ea96792d0bee CRs-Fixed: 2663098
This commit is contained in:
parent
c4ae3d34b6
commit
34b51d3dcc
1 changed files with 2 additions and 1 deletions
|
|
@ -3008,7 +3008,8 @@ void dp_deliver_mgmt_frm(struct dp_pdev *pdev, qdf_nbuf_t nbuf)
|
|||
nbuf, HTT_INVALID_PEER,
|
||||
WDI_NO_VAL, pdev->pdev_id);
|
||||
} else {
|
||||
qdf_nbuf_free(nbuf);
|
||||
if (!pdev->bpr_enable)
|
||||
qdf_nbuf_free(nbuf);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue