This is a note to let you know that I've just added the patch titled iwlwifi: protect SRAM debugfs to the 3.4-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: iwlwifi-protect-sram-debugfs.patch and it can be found in the queue-3.4 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From wujianguo@xxxxxxxxxx Fri Mar 7 16:58:32 2014 From: Johannes Berg <johannes.berg@xxxxxxxxx> Date: Thu, 27 Feb 2014 09:52:56 +0800 Subject: iwlwifi: protect SRAM debugfs To: <gregkh@xxxxxxxxxxxxxxxxxxx> Cc: <stable@xxxxxxxxxxxxxxx>, <lizefan@xxxxxxxxxx>, Johannes Berg <johannes.berg@xxxxxxxxx>, Jianguo Wu <wujianguo@xxxxxxxxxx> Message-ID: <1393465983-10548-3-git-send-email-wujianguo@xxxxxxxxxx> From: Johannes Berg <johannes.berg@xxxxxxxxx> commit 4fc79db178f0a0ede479b4713e00df2d106028b3 upstream. If the device is not started, we can't read its SRAM and attempting to do so will cause issues. Protect the debugfs read. Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> Signed-off-by: John W. Linville <linville@xxxxxxxxxxxxx> [wujg: Backported to 3.4: adjust context] Signed-off-by: Jianguo Wu <wujianguo@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/net/wireless/iwlwifi/iwl-debugfs.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c @@ -227,6 +227,9 @@ static ssize_t iwl_dbgfs_sram_read(struc const struct fw_img *img; size_t bufsz; + if (!iwl_is_ready_rf(priv)) + return -EAGAIN; + /* default is to dump the entire data segment */ if (!priv->dbgfs_sram_offset && !priv->dbgfs_sram_len) { priv->dbgfs_sram_offset = 0x800000; Patches currently in stable-queue which might be from johannes.berg@xxxxxxxxx are queue-3.4/iwlwifi-dvm-don-t-send-bt_config-on-devices-w-o-bluetooth.patch queue-3.4/iwlwifi-handle-dma-mapping-failures.patch queue-3.4/iwlwifi-pcie-add-skus-for-6000-6005-and-6235-series.patch queue-3.4/iwlwifi-protect-sram-debugfs.patch queue-3.4/iwlwifi-fix-flow-handler-debug-code.patch queue-3.4/iwlwifi-don-t-handle-masked-interrupt.patch queue-3.4/iwlwifi-dvm-fix-calling-ieee80211_chswitch_done-with-null.patch queue-3.4/iwlwifi-always-copy-first-16-bytes-of-commands.patch -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html