From: Alasdair G Kergon Date: Thu, 12 Aug 2010 03:13:49 +0000 (+0100) Subject: dm mpath: fix NULL pointer dereference when path parameters missing X-Git-Tag: v2.6.34.6~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a812ce040627c0c1ed8c3f48b518877ea5d98ee0;p=thirdparty%2Fkernel%2Fstable.git dm mpath: fix NULL pointer dereference when path parameters missing commit 6bbf79a14080a0c61212f53b4b87dc1a99fedf9c upstream. multipath_ctr() forgets to return an error after detecting missing path parameters. Fix this. Signed-off-by: Patrick LoPresti Signed-off-by: Alasdair G Kergon Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 826bce7343b36..da2223aa727f8 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; }