Skip to content

Commit

Permalink
dm mpath: fix NULL pointer dereference when path parameters missing
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alasdair G Kergon committed Aug 12, 2010
1 parent 5af568c commit 6bbf79a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/md/dm-mpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6bbf79a

Please sign in to comment.