From: Kees Cook Date: Thu, 10 Jul 2014 20:16:11 +0000 (-0700) Subject: staging: r8821ae: avoid leaking format string X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3355a62673e2c4bd8617d2f07c8edee92a89b8d;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8821ae/btcoexist/halbtcoutsrc.h b/drivers/staging/rtl8821ae/btcoexist/halbtcoutsrc.h index 787798e76217..fd233cc85a5b 100644 --- a/drivers/staging/rtl8821ae/btcoexist/halbtcoutsrc.h +++ b/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 { \