diff options
author | Kees Cook <keescook@chromium.org> | 2014-06-30 13:37:59 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-07-21 21:37:06 -0700 |
commit | e7fbaf016e917a14b5cbed7a724e0a45338700ee (patch) | |
tree | a1f0238598bcb641806cd1a32300a086843cc381 /arch/sparc/kernel | |
parent | 54dcf0ceb8a21a898cd436617483e5646f2edcc6 (diff) | |
download | blackbird-op-linux-e7fbaf016e917a14b5cbed7a724e0a45338700ee.tar.gz blackbird-op-linux-e7fbaf016e917a14b5cbed7a724e0a45338700ee.zip |
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>
Diffstat (limited to 'arch/sparc/kernel')
-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, /* This is just to make gcc think panic does return... */ static void unaligned_panic(char *str) { - panic(str); + panic("%s", str); } /* una_asm.S */ |