dm mpath: fix NULL pointer dereference when path parameters missing

commit 6bbf79a140 upstream.

multipath_ctr() forgets to return an error after detecting
missing path parameters.  Fix this.

Signed-off-by: Patrick LoPresti <lopresti@gmail.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Alasdair G Kergon
2010-08-12 04:13:49 +01:00
committed by Greg Kroah-Hartman
parent 592de9cc7e
commit 605a37bcc6

View File

@@ -691,6 +691,7 @@ static struct priority_group *parse_priority_group(struct arg_set *as,
if (as->argc < nr_params) {
ti->error = "not enough path parameters";
r = -EINVAL;
goto bad;
}