From: Johannes Berg Date: Tue, 21 Aug 2012 16:57:10 +0000 (+0200) Subject: iwlwifi: fix flow handler debug code X-Git-Tag: v3.2.30~131 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfc41fe51189b356f4e8dd1982d1b97ee594d5fd;p=pandora-kernel.git iwlwifi: fix flow handler debug code commit 94543a8d4fb302817014981489f15cb3b92ec3c2 upstream. 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. Reported-by: Benjamin Herrenschmidt Signed-off-by: Johannes Berg Signed-off-by: John W. Linville [bwh: Backported to 3.2: adjust filenames and context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed