mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacmn: Move osif priv deallocation to vdev destroy
osif priv is allocated as part of the vdev object and freed as part of the logical vdev deletion. There is a race condition where in a component holding the reference to the vdev is trying to do an operation using the osif priv. But in the other thread osif priv can be freed. This can lead to null pointer exception. Hence, move the osif priv deletion to the vdev physical destroy. Change-Id: Iea3fd87cb272a51c5691ee2e39a590861c1b1637 CRs-Fixed: 2449996
This commit is contained in:
parent
2fcbb3f715
commit
52ac4710fa
1 changed files with 1 additions and 0 deletions
|
|
@ -107,6 +107,7 @@ static QDF_STATUS wlan_objmgr_vdev_obj_free(struct wlan_objmgr_vdev *vdev)
|
|||
|
||||
qdf_mem_free(vdev->vdev_mlme.bss_chan);
|
||||
qdf_mem_free(vdev->vdev_mlme.des_chan);
|
||||
qdf_mem_free(vdev->vdev_nif.osdev);
|
||||
qdf_mem_free(vdev);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue