]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iwlwifi: protect SRAM debugfs
authorJohannes Berg <johannes.berg@intel.com>
Tue, 21 Aug 2012 16:57:11 +0000 (18:57 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Sep 2012 14:04:27 +0000 (15:04 +0100)
commit22d4436ddd8532fe0ef66d0c4f72e93c23831b37
tree1c3da36e4330fca218b3604a1ad04f3e8ee3ce84
parentcfc41fe51189b356f4e8dd1982d1b97ee594d5fd
iwlwifi: protect SRAM debugfs

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@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
[bwh: Backported to 3.2:
 - Adjust context
 - Pass iwl_shared not iwl_priv pointer to iwl_is_ready_rf()]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/iwlwifi/iwl-debugfs.c