Quellcode durchsuchen

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 vor 11 Jahren
Ursprung
Commit
a3355a6267
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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 { 							\