Explorar el Código

qcacld-3.0: Do not call self delete peer rsp api for invalid vdev

There is a scenario where valid vdev is already deleted properly
but somehow hdd and wma went out of sync and wma_vdev_detach gets
called for invalid vdev id
For invalid vdev id, driver is calling
mlme_vdev_self_peer_delete_resp() which is trying to release the
WLAN_LEGACY_SME_ID reference which was not acquired and that
results to crash.

As part of fix, do not call mlme_vdev_self_peer_delete_resp()
for invalid vdev id.

Change-Id: I5cb95ca74d43e4329c50b8dc1361c7bd34bf735e
CRs-Fixed: 3655723
Ravindra Konda hace 1 año
padre
commit
a102901755
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      core/wma/src/wma_dev_if.c

+ 0 - 1
core/wma/src/wma_dev_if.c

@@ -729,7 +729,6 @@ QDF_STATUS wma_vdev_detach(struct del_vdev_params *pdel_vdev_req_param)
 	iface = &wma_handle->interfaces[vdev_id];
 	if (!iface->vdev) {
 		wma_err("vdev %d is NULL", vdev_id);
-		mlme_vdev_self_peer_delete_resp(pdel_vdev_req_param);
 		return status;
 	}