]> git.baikalelectronics.ru Git - kernel.git/commit
dm mpath: free path selector on invalid args
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 21 Jul 2008 11:00:24 +0000 (12:00 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Mon, 21 Jul 2008 11:00:24 +0000 (12:00 +0100)
commit0558a04b48321b5aebaaac4818a8322f3cf76c08
treed7adce2fcaf95bfbbdfd4779d0e03e2980308b65
parentf71304d47a0ec85bf160a3698528076de23b1c63
dm mpath: free path selector on invalid args

Free path selector if the arguments are invalid.

This command (note that it is invalid) causes reference leak on module
"dm_round_robin" and prevents the module from being removed.

dmsetup create --table '0 2 multipath 0 0 1 1 round-robin /dev/sdh' mpath0

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-mpath.c