mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
qcacmn: Fix passing NULL vdev object to object manager
Fix passing NULL vdev object to object manager. Currently during unload process, we are purging all the cmds in the cmd list. In this case pointer vdev_id is passed as NULL since we wanted to clean up cmds associated with all the vdevs. In wlan_serialization_purge_cmd_list() vdev remains NULL in this scenario which results in an ASSERT in wlan_objmgr_vdev_release_ref(). This change set will call wlan_objmgr_vdev_release_ref only if vdev is not NULL. Change-Id: I29a6114f4b5d9fcabe24b82f26defd8ab58cceec CRs-Fixed: 2029580
This commit is contained in:
parent
cab5f29ee4
commit
8e039b16e1
1 changed files with 3 additions and 1 deletions
|
|
@ -465,7 +465,9 @@ void wlan_serialization_purge_cmd_list(struct wlan_objmgr_psoc *psoc,
|
|||
}
|
||||
wlan_objmgr_pdev_release_ref(pdev, WLAN_SERIALIZATION_ID);
|
||||
release_vdev_ref:
|
||||
wlan_objmgr_vdev_release_ref(vdev, WLAN_SERIALIZATION_ID);
|
||||
/* vdev could be NULL if vdev_id passed is NULL */
|
||||
if (vdev)
|
||||
wlan_objmgr_vdev_release_ref(vdev, WLAN_SERIALIZATION_ID);
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue