Browse Source

qcacmn: Release lock in dp_reset_monitor_mode

Release mon_lock in dp_reset_monitor_mode function before returning
if status is not successful.

Change-Id: I321cd55225ed3cc5e5b4a752fb10604d05fb9a56
CRs-Fixed: 2462725
Saket Jha 5 years ago
parent
commit
78976eaa91
1 changed files with 1 additions and 0 deletions
  1. 1 0
      dp/wifi3.0/dp_main.c

+ 1 - 0
dp/wifi3.0/dp_main.c

@@ -6064,6 +6064,7 @@ QDF_STATUS dp_reset_monitor_mode(struct cdp_pdev *pdev_handle)
 
 		if (status != QDF_STATUS_SUCCESS) {
 			dp_err("Failed to send tlv filter for monitor mode rings");
+			qdf_spin_unlock_bh(&pdev->mon_lock);
 			return status;
 		}