Skip to content

Commit 9d5c34f

Browse files
committed
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless into for-davem
2 parents f57da7a + 57bf744 commit 9d5c34f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

drivers/net/wireless/ath/ath9k/htc_drv_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ static int ath9k_htc_config(struct ieee80211_hw *hw, u32 changed)
11741174
mutex_lock(&priv->htc_pm_lock);
11751175

11761176
priv->ps_idle = !!(conf->flags & IEEE80211_CONF_IDLE);
1177-
if (priv->ps_idle)
1177+
if (!priv->ps_idle)
11781178
chip_reset = true;
11791179

11801180
mutex_unlock(&priv->htc_pm_lock);

drivers/net/wireless/ath/ath9k/xmit.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,6 +1570,8 @@ void ath_txq_schedule(struct ath_softc *sc, struct ath_txq *txq)
15701570
txq->axq_ampdu_depth >= ATH_AGGR_MIN_QDEPTH)
15711571
return;
15721572

1573+
rcu_read_lock();
1574+
15731575
ac = list_first_entry(&txq->axq_acq, struct ath_atx_ac, list);
15741576
last_ac = list_entry(txq->axq_acq.prev, struct ath_atx_ac, list);
15751577

@@ -1608,8 +1610,10 @@ void ath_txq_schedule(struct ath_softc *sc, struct ath_txq *txq)
16081610

16091611
if (ac == last_ac ||
16101612
txq->axq_ampdu_depth >= ATH_AGGR_MIN_QDEPTH)
1611-
return;
1613+
break;
16121614
}
1615+
1616+
rcu_read_unlock();
16131617
}
16141618

16151619
/***********/

net/bluetooth/l2cap_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4333,7 +4333,7 @@ static inline int l2cap_information_rsp(struct l2cap_conn *conn,
43334333
struct l2cap_info_rsp *rsp = (struct l2cap_info_rsp *) data;
43344334
u16 type, result;
43354335

4336-
if (cmd_len != sizeof(*rsp))
4336+
if (cmd_len < sizeof(*rsp))
43374337
return -EPROTO;
43384338

43394339
type = __le16_to_cpu(rsp->type);

0 commit comments

Comments
 (0)