]> 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>
Wed, 19 Jun 2013 00:07:05 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:26:56 +0000 (17:26 +1000)
commit6bc0411d201d76286005157c98dea0c7dfebb0ca
tree8337494628abdbb953125a02c0bd667f2d7587af
parent195576bb41126641164ab11c3f1b34c210bc1d5c
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