Commit 605a37bc authored by Alasdair G Kergon's avatar Alasdair G Kergon Committed by Greg Kroah-Hartman

dm mpath: fix NULL pointer dereference when path parameters missing

commit 6bbf79a1 upstream.

multipath_ctr() forgets to return an error after detecting
missing path parameters.  Fix this.
Signed-off-by: default avatarPatrick LoPresti <lopresti@gmail.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 592de9cc
......@@ -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;
}
......
Markdown is supported
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