This is a note to let you know that I've just added the patch titled
rtlwifi: rtl8192c: Prevent sleeping from invalid context in rtl8192cu
to the 3.3-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
rtlwifi-rtl8192c-prevent-sleeping-from-invalid-context-in-rtl8192cu.patch
and it can be found in the queue-3.3 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From ebecdcc12fed5d3c81853dea61a0a78a5aefab52 Mon Sep 17 00:00:00 2001
From: Larry Finger <[email protected]>
Date: Fri, 2 Mar 2012 15:23:36 -0600
Subject: rtlwifi: rtl8192c: Prevent sleeping from invalid context in rtl8192cu
From: Larry Finger <[email protected]>
commit ebecdcc12fed5d3c81853dea61a0a78a5aefab52 upstream.
When driver rtl8192cu is used with the debug level set to 3 or greater,
the result is "sleeping function called from invalid context" due to
an rcu_read_lock() call in the DM refresh routine in driver rtl8192c.
This lock is not necessary as the USB driver does not use the struct
being protected, thus the lock is set only when a PCI interface is
active.
This bug is reported in https://bugzilla.kernel.org/show_bug.cgi?id=42775.
Reported-by: Ronald Wahl <[email protected]>
Tested-by: Ronald Wahl <[email protected]>
Signed-off-by: Larry Finger <[email protected]>
Cc: Ronald Wahl <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
--- a/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c
@@ -1219,13 +1219,18 @@ static void rtl92c_dm_refresh_rate_adapt
("PreState = %d, CurState = %d\n",
p_ra->pre_ratr_state, p_ra->ratr_state));
- rcu_read_lock();
- sta = ieee80211_find_sta(mac->vif, mac->bssid);
+ /* Only the PCI card uses sta in the update rate table
+ * callback routine */
+ if (rtlhal->interface == INTF_PCI) {
+ rcu_read_lock();
+ sta = ieee80211_find_sta(mac->vif, mac->bssid);
+ }
rtlpriv->cfg->ops->update_rate_tbl(hw, sta,
p_ra->ratr_state);
p_ra->pre_ratr_state = p_ra->ratr_state;
- rcu_read_unlock();
+ if (rtlhal->interface == INTF_PCI)
+ rcu_read_unlock();
}
}
}
Patches currently in stable-queue which might be from [email protected]
are
queue-3.3/staging-r8712u-fix-regression-introduced-by-commit-a5ee652.patch
queue-3.3/rtlwifi-rtl8192c_common-rtl8192de-check-for-allocation-failures.patch
queue-3.3/rtlwifi-rtl8192ce-fix-loss-of-receive-performance.patch
queue-3.3/rtlwifi-rtl8192c-prevent-sleeping-from-invalid-context-in-rtl8192cu.patch
queue-3.3/staging-r8712u-fix-regression-in-signal-level-after-commit-c6dc001.patch
queue-3.3/rtlwifi-handle-previous-allocation-failures-when-freeing-device-memory.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html