]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arch/frv/kernel/traps.c: using vsnprintf() instead of vsprintf()
authorChen Gang <gang.chen@asianux.com>
Fri, 7 Jun 2013 00:08:36 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:42:40 +0000 (15:42 +1000)
commite1eac01c8b4578c69614b2d1270b8a9dc0773f49
tree691c14a372ae512ac142d0157a4e1a9e870becfa
parente0dd2f8b2b204ea574db6ca0ec926d4fd133f595
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>
arch/frv/kernel/traps.c