diff options
author | Alasdair G Kergon <agk@redhat.com> | 2010-08-03 11:30:28 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2010-08-03 11:30:28 +1000 |
commit | 8efbc79bc8a202b170affedc1982aaa4e7185164 (patch) | |
tree | bca391e6079fd792c0f8fcd57c1cfeb3844afcbe /drivers/md | |
parent | cd5b8f8755a89a57fc8c408d284b8b613f090345 (diff) |
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>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-mpath.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 826bce7343b3..da2223aa727f 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -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; } |