Release mon_lock in dp_reset_monitor_mode function before returning if status is not successful. Change-Id: I321cd55225ed3cc5e5b4a752fb10604d05fb9a56 CRs-Fixed: 2462725
@@ -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;
}