qcacmn: release spinlock in the exit path

spinlock is not released in one of the exit paths
of target_if_start_spectral_scan function.
Fix it by releasing the spinlock before return.

CRs-Fixed: 2699762
Change-Id: I012c4151b3968ffbedb68eba64b30bc4c08cf44f
This commit is contained in:
Edayilliam Jayadev
2020-06-04 09:10:28 +05:30
committed by nshrivas
parent 9fabb02b2a
commit fd38ce125c

View File

@@ -4200,6 +4200,7 @@ target_if_start_spectral_scan(struct wlan_objmgr_pdev *pdev,
(spectral, ch_width, spectral->params
[SPECTRAL_SCAN_MODE_AGILE].ss_frequency.cfreq2 > 0);
if (QDF_IS_STATUS_ERROR(status)) {
qdf_spin_unlock(&spectral->spectral_lock);
spectral_err("Failed to populate channel width");
return QDF_STATUS_E_FAILURE;
}