mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
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>
This commit is contained in:
parent
54dcf0ceb8
commit
e7fbaf016e
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue