ソースを参照

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
Edayilliam Jayadev 5 年 前
コミット
fd38ce125c
1 ファイル変更1 行追加0 行削除
  1. 1 0
      target_if/spectral/target_if_spectral.c

+ 1 - 0
target_if/spectral/target_if_spectral.c

@@ -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;
 		}