mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
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: Patrick LoPresti <lopresti@gmail.com> Cc: stable@kernel.org Signed-off-by: Alasdair G Kergon <agk@redhat.com>
This commit is contained in:
parent
5af568cbd5
commit
6bbf79a140
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue