]> git.karo-electronics.de Git - linux-beck.git/commitdiff
rtlwifi: btcoexist: avoid format string in printk
authorKees Cook <keescook@chromium.org>
Tue, 10 Jun 2014 17:37:24 +0000 (10:37 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 19 Jun 2014 19:49:16 +0000 (15:49 -0400)
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>
drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.h

index 871fc3c6d559f63b65f1322417a1e2d61a8fc955..049f4c8d98a8675baa69bd993a1bfe268bd08f2f 100644 (file)
@@ -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 {                                                    \