]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iwlwifi: remove log_event debugfs file debugging is disabled
authorJohannes Berg <johannes.berg@intel.com>
Wed, 20 Jun 2012 06:46:25 +0000 (08:46 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 4 Jul 2012 04:44:23 +0000 (05:44 +0100)
commit468267529e13b35307410c8e7bd09bc41d063c79
tree5c83418b76b44dc51b1604f6c19b182fa172b15a
parent8ec8fdb5e62e6a7ff9956217b32dae6bc46328ec
iwlwifi: remove log_event debugfs file debugging is disabled

commit 882b7b7d11d65e8eccce738f1ce97cdfdb998f9f upstream.

When debugging is disabled, the event log functions aren't
functional in the way that the debugfs file expects. This
leads to the debugfs access crashing. Since the event log
functions aren't functional then, remove the debugfs file
when CONFIG_IWLWIFI_DEBUG is not set.

Reported-by: Lekensteyn <lekensteyn@gmail.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
[bwh: Backported to 3.2: adjust filename, context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/iwlwifi/iwl-trans-pcie.c