From: Jesper Juhl Date: Wed, 7 Mar 2012 19:09:34 +0000 (+0000) Subject: dm ioctl: do not leak argv if target message only contains whitespace X-Git-Tag: v3.3-rc7~17^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=902c6a96a7cb9c50d2a8aed1788efad0a5d8f04c;p=pandora-kernel.git dm ioctl: do not leak argv if target message only contains whitespace If 'argc' is zero we jump to the 'out:' label, but this leaks the (unused) memory that 'dm_split_args()' allocated for 'argv' if the string being split consisted entirely of whitespace. Jump to the 'out_argv:' label instead to free up that memory. Signed-off-by: Jesper Juhl Cc: stable@kernel.org Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed