Skip to content
Commit 902c6a96 authored by Jesper Juhl's avatar Jesper Juhl Committed by Alasdair G Kergon
Browse files

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: default avatarJesper Juhl <jj@chaosbits.net>
Cc: stable@kernel.org
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 192cfd58
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment