Commit e7fbaf01 authored by Kees Cook's avatar Kees Cook Committed by David S. Miller

sparc: use %s for unaligned panic

Since unaligned_panic() takes a literal string, make sure it can never
accidentally be used as a format string.
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 54dcf0ce
...@@ -166,7 +166,7 @@ unsigned long safe_compute_effective_address(struct pt_regs *regs, ...@@ -166,7 +166,7 @@ unsigned long safe_compute_effective_address(struct pt_regs *regs,
/* This is just to make gcc think panic does return... */ /* This is just to make gcc think panic does return... */
static void unaligned_panic(char *str) static void unaligned_panic(char *str)
{ {
panic(str); panic("%s", str);
} }
/* una_asm.S */ /* una_asm.S */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment