mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 00:47:56 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f4a86b653b
commit
a3355a6267
@@ -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 { \
|
||||
|
||||
Reference in New Issue
Block a user