Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -706,6 +706,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;
		}