]> git.proxmox.com Git - mirror_spl.git/commit - module/spl/spl-kmem.c
Fix buggy kmem_{v}asprintf() functions
authorRicardo M. Correia <ricardo.correia@oracle.com>
Tue, 20 Jul 2010 20:51:42 +0000 (13:51 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 20 Jul 2010 20:51:46 +0000 (13:51 -0700)
commit2c762de8303e441154a0c38c0cf78170b5d45013
tree333f5404539867b0e47a73d07e4c0fda480e59e2
parent9dd5d138b2326201f4258b126f2bfdb0b4c6138d
Fix buggy kmem_{v}asprintf() functions

When the kvasprintf() call fails they should reset the arguments
by calling va_start()/va_copy() and va_end() inside the loop,
otherwise they'll try to read more arguments rather than starting
over and reading them from the beginning.

Signed-off-by: Ricardo M. Correia <ricardo.correia@oracle.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
module/spl/spl-kmem.c