Browse Source

qcacld-3.0: Fix TDLS memory leak in SSR and driver unload

In SSR or driver unloading case, directly exit may cause obj
leak. Free the objects in those cases, regardless of
sme_close_session status

Change-Id: Iaf0500aca23917f84c37848cd3abade66b7d7456
CRs-Fixed: 2187579
Kabilan Kannan 7 năm trước cách đây
mục cha
commit
b867c313fe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      core/hdd/src/wlan_hdd_main.c

+ 1 - 1
core/hdd/src/wlan_hdd_main.c

@@ -3680,7 +3680,7 @@ release_vdev:
 	 * In SSR or driver unloading case, directly exit may cause objects
 	 * leak, if sme_close_session failed. Free objects anyway.
 	 */
-	if (errno && !(cds_is_driver_recovering() || cds_is_driver_unloading()))
+	if (errno && !cds_is_driver_recovering() && !cds_is_driver_unloading())
 		return errno;
 
 	/* do vdev logical destroy via objmgr */