summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2014-06-10 10:37:24 -0700
committerJohn W. Linville <linville@tuxdriver.com>2014-06-19 15:49:16 -0400
commit6437f51ec36af8ef1e3e2659439b35c37e5498e2 (patch)
tree7d847e89648a9815555f37b4c8a8ba4a31ef3c13
parente860c33f7d05907bb21ea6f0c2b085b75b028e3d (diff)
downloadop-kernel-dev-6437f51ec36af8ef1e3e2659439b35c37e5498e2.zip
op-kernel-dev-6437f51ec36af8ef1e3e2659439b35c37e5498e2.tar.gz
rtlwifi: btcoexist: avoid format string in printk
Since CL_PRINTF only ever takes a single argument, make sure a format string cannot leak into printk. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h b/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h
index 871fc3c..049f4c8 100644
--- a/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h
+++ b/drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h
@@ -114,7 +114,7 @@ extern u32 btc_dbg_type[];
#define CL_SPRINTF snprintf
-#define CL_PRINTF printk
+#define CL_PRINTF(buf) printk("%s", buf)
#define BTC_PRINT(dbgtype, dbgflag, printstr, ...) \
do { \
OpenPOWER on IntegriCloud