Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kees Cook and committed by
Greg Kroah-Hartman
a3355a62 f4a86b65

+1 -1
+1 -1
drivers/staging/rtl8821ae/btcoexist/halbtcoutsrc.h
··· 88 88 89 89 90 90 #define CL_SPRINTF snprintf 91 - #define CL_PRINTF printk 91 + #define CL_PRINTF(buf) printk("%s", buf) 92 92 93 93 #define BTC_PRINT(dbgtype, dbgflag, printstr, ...) \ 94 94 do { \