summaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2014-06-30 22:37:59 +0200
committerDavid S. Miller <davem@davemloft.net>2014-07-22 06:37:06 +0200
commite7fbaf016e917a14b5cbed7a724e0a45338700ee (patch)
treea1f0238598bcb641806cd1a32300a086843cc381 /arch/sparc
parentdrivers/sbus/char: Micro-optimization in display7seg.c (diff)
downloadlinux-e7fbaf016e917a14b5cbed7a724e0a45338700ee.tar.xz
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')
-rw-r--r--arch/sparc/kernel/unaligned_32.c2
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 */