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
这个提交包含在:
Arun Kumar Khandavalli
2019-05-13 15:21:48 +05:30
提交者 nshrivas
父节点 2fcbb3f715
当前提交 52ac4710fa

查看文件

@@ -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;