qcacld-3.0: Fix the spinlock pairing issue

Per code review, some spin_lock/spin_unlock are not pairing.

Change-Id: I72cbc6d77ee37e44b4672a4e6747b90b7ebb0a4e
CRs-Fixed: 2105070
This commit is contained in:
Paul Zhang
2017-09-06 18:01:45 +08:00
committed by snandini
szülő 1f20ec6b0e
commit fb35175109
2 fájl változott, egészen pontosan 8 új sor hozzáadva és 10 régi sor törölve

Fájl megtekintése

@@ -598,6 +598,8 @@ ol_rx_indication_handler(ol_txrx_pdev_handle pdev,
ol_rx_trigger_restore(htt_pdev,
head_msdu,
tail_msdu);
OL_RX_REORDER_TIMEOUT_MUTEX_UNLOCK(
pdev);
return;
}
#endif
@@ -655,6 +657,8 @@ ol_rx_indication_handler(ol_txrx_pdev_handle pdev,
if (htt_pdev->rx_ring.rx_reset) {
ol_rx_trigger_restore(htt_pdev, msdu,
tail_msdu);
OL_RX_REORDER_TIMEOUT_MUTEX_UNLOCK(
pdev);
return;
}
#endif

Fájl megtekintése

@@ -863,17 +863,11 @@ dfsfound:
ath_hal_setrxfilter(ah, rfilt);
#endif
DFS_DPRINTK(dfs, ATH_DEBUG_DFS1,
"Primary channel freq = %u flags=0x%x",
chan->ic_freq, chan->ic_flagext);
qdf_spin_lock_bh(&dfs->ic->chan_lock);
if ((dfs->ic->ic_curchan->ic_freq != thischan->ic_freq)) {
qdf_spin_unlock_bh(&dfs->ic->chan_lock);
DFS_DPRINTK(dfs, ATH_DEBUG_DFS1,
"Ext channel freq = %u flags=0x%x",
thischan->ic_freq, thischan->ic_flagext);
}
"Primary channel freq = %u flags=0x%x, "
"Ext channel freq = %u flags=0x%x",
chan->ic_freq, chan->ic_flagext,
thischan->ic_freq, thischan->ic_flagext);
qdf_spin_unlock_bh(&dfs->ic->chan_lock);
dfs->dfs_phyerr_freq_min = 0x7fffffff;
dfs->dfs_phyerr_freq_max = 0;
dfs->dfs_phyerr_w53_counter = 0;