summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2014-06-30 13:37:59 -0700
committerDavid S. Miller <davem@davemloft.net>2014-07-21 21:37:06 -0700
commite7fbaf016e917a14b5cbed7a724e0a45338700ee (patch)
treea1f0238598bcb641806cd1a32300a086843cc381
parent54dcf0ceb8a21a898cd436617483e5646f2edcc6 (diff)
downloadop-kernel-dev-e7fbaf016e917a14b5cbed7a724e0a45338700ee.zip
op-kernel-dev-e7fbaf016e917a14b5cbed7a724e0a45338700ee.tar.gz
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.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 c5c61b3..32b61d1 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 */
OpenPOWER on IntegriCloud