Browse Source

staging: r8821ae: avoid leaking format string

This make sure a format string cannot leak into the work queue name nor
the printk buffer.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Kees Cook 11 years ago
parent
commit
a3355a6267
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/rtl8821ae/btcoexist/halbtcoutsrc.h

+ 1 - 1
drivers/staging/rtl8821ae/btcoexist/halbtcoutsrc.h

@@ -88,7 +88,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 { 							\