Commit b5c32061 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

sparc64: make string buffers large enough

My static checker complains that if "lvl" is ULONG_MAX (this is 64 bit)
then some of the strings will overflow.  I don't know if that's possible
but it seems simple enough to make the buffers slightly larger.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent efca4885
...@@ -85,7 +85,7 @@ static void dump_tl1_traplog(struct tl1_traplog *p) ...@@ -85,7 +85,7 @@ static void dump_tl1_traplog(struct tl1_traplog *p)
void bad_trap(struct pt_regs *regs, long lvl) void bad_trap(struct pt_regs *regs, long lvl)
{ {
char buffer[32]; char buffer[36];
siginfo_t info; siginfo_t info;
if (notify_die(DIE_TRAP, "bad trap", regs, if (notify_die(DIE_TRAP, "bad trap", regs,
...@@ -116,7 +116,7 @@ void bad_trap(struct pt_regs *regs, long lvl) ...@@ -116,7 +116,7 @@ void bad_trap(struct pt_regs *regs, long lvl)
void bad_trap_tl1(struct pt_regs *regs, long lvl) void bad_trap_tl1(struct pt_regs *regs, long lvl)
{ {
char buffer[32]; char buffer[36];
if (notify_die(DIE_TRAP_TL1, "bad trap tl1", regs, if (notify_die(DIE_TRAP_TL1, "bad trap tl1", regs,
0, lvl, SIGTRAP) == NOTIFY_STOP) 0, lvl, SIGTRAP) == NOTIFY_STOP)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment