Commit 6bbf79a1 authored by Alasdair G Kergon's avatar Alasdair G Kergon

dm mpath: fix NULL pointer dereference when path parameters missing

multipath_ctr() forgets to return an error after detecting
missing path parameters.  Fix this.
Signed-off-by: default avatarPatrick LoPresti <lopresti@gmail.com>
Cc: stable@kernel.org
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 5af568cb
...@@ -706,6 +706,7 @@ static struct priority_group *parse_priority_group(struct arg_set *as, ...@@ -706,6 +706,7 @@ static struct priority_group *parse_priority_group(struct arg_set *as,
if (as->argc < nr_params) { if (as->argc < nr_params) {
ti->error = "not enough path parameters"; ti->error = "not enough path parameters";
r = -EINVAL;
goto bad; 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