mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 11:34:58 +00:00
rtlwifi: btcoexist: avoid format string in printk
Since CL_PRINTF only ever takes a single argument, make sure a format string cannot leak into printk. Signed-off-by: Kees Cook <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
committed by
John W. Linville
parent
e860c33f7d
commit
6437f51ec3
@@ -114,7 +114,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