qcacmn: Use after free in wlan_mgmt_txrx_psoc_obj_destroy_notification

Avoid use after free in wlan_mgmt_txrx_psoc_obj_destroy_notification.

Change-Id: Ia686792fe1014b9d7ee7177622d68443ecf2620e
CRs-Fixed: 2751958
This commit is contained in:
Jianmin Zhu
2020-08-10 21:22:14 +08:00
gecommit door snandini
bovenliggende 1c65e1b75b
commit 71ab2b7021

Bestand weergeven

@@ -128,7 +128,7 @@ static QDF_STATUS wlan_mgmt_txrx_psoc_obj_destroy_notification(
qdf_spinlock_destroy(&mgmt_txrx_psoc_ctx->mgmt_txrx_psoc_ctx_lock);
qdf_mem_free(mgmt_txrx_psoc_ctx);
mgmt_txrx_debug("mgmt txrx deletion successful, psoc: %pK", psoc);
mgmt_txrx_debug("mgmt txrx deletion successful");
return QDF_STATUS_SUCCESS;
}