iwlwifi: fix flow handler debug code
authorJohannes Berg <johannes.berg@intel.com>
Tue, 21 Aug 2012 16:57:10 +0000 (18:57 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 21 Aug 2012 19:01:44 +0000 (15:01 -0400)
commit94543a8d4fb302817014981489f15cb3b92ec3c2
tree651bad8e64bfaab497786cd6521f9db1bd3988d0
parent7b4e6cfbae304177b8edc0c12341b4896cab3f2d
iwlwifi: fix flow handler debug code

iwl_dbgfs_fh_reg_read() can cause crashes and/or
BUG_ON in slub because the ifdefs are wrong, the
code in iwl_dump_fh() should use DEBUGFS, not
DEBUG to protect the buffer writing code.

Also, while at it, clean up the arguments to the
function, some code and make it generally safer.

Cc: stable@vger.kernel.org
Reported-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/pcie/internal.h
drivers/net/wireless/iwlwifi/pcie/rx.c
drivers/net/wireless/iwlwifi/pcie/trans.c