diff options
author | Kees Cook <keescook@chromium.org> | 2014-06-30 16:37:59 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-22 00:37:06 -0400 |
commit | e7fbaf016e917a14b5cbed7a724e0a45338700ee (patch) | |
tree | a1f0238598bcb641806cd1a32300a086843cc381 | |
parent | 54dcf0ceb8a21a898cd436617483e5646f2edcc6 (diff) |
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: Kees Cook <keescook@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | arch/sparc/kernel/unaligned_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/unaligned_32.c b/arch/sparc/kernel/unaligned_32.c index c5c61b3c6b56..32b61d1b6379 100644 --- a/arch/sparc/kernel/unaligned_32.c +++ b/arch/sparc/kernel/unaligned_32.c | |||
@@ -166,7 +166,7 @@ unsigned long safe_compute_effective_address(struct pt_regs *regs, | |||
166 | /* This is just to make gcc think panic does return... */ | 166 | /* This is just to make gcc think panic does return... */ |
167 | static void unaligned_panic(char *str) | 167 | static void unaligned_panic(char *str) |
168 | { | 168 | { |
169 | panic(str); | 169 | panic("%s", str); |
170 | } | 170 | } |
171 | 171 | ||
172 | /* una_asm.S */ | 172 | /* una_asm.S */ |