]> git.baikalelectronics.ru Git - kernel.git/commit
lib/vsprintf.c: fix interaction of kasprintf() and vsnprintf() when using %pV
authorJan Beulich <JBeulich@novell.com>
Wed, 25 May 2011 00:13:18 +0000 (17:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 May 2011 15:39:47 +0000 (08:39 -0700)
commit3519d070a8b67033837c26dc1517eac2c33faac6
tree1ba560ac75dd1a2575ee5ec95f91a9d549467361
parent23f43a64c460d3c2f296340f02adfdc1c5f4f32c
lib/vsprintf.c: fix interaction of kasprintf() and vsnprintf() when using %pV

Otherwise, the warning at the top of vsnprintf() gets triggered by
kvasprintf()'s first invocation (with NULL buffer and zero size) of
vsnprintf().

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/vsprintf.c