arch/frv/kernel/traps.c: using vsnprintf() instead of vsprintf()
authorChen Gang <gang.chen@asianux.com>
Wed, 3 Jul 2013 22:04:52 +0000 (15:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:41 +0000 (16:07 -0700)
commit760033c45e8aa13c9e02530da7274edc624c7689
tree1bc2fd61d9af6a4133dde164705d758ffd342a90
parent519ebea3bf6df45439e79c54bda1d9e29fe13a64
arch/frv/kernel/traps.c: using vsnprintf() instead of vsprintf()

Since die_if_kernel() is an extern common used function, better always
check the buffer length to avoid memory overflow by a long 'str'.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/frv/kernel/traps.c