From b785eaf2f92b284a3ceac804aa63ab1145d12a64 Mon Sep 17 00:00:00 2001 Date: Thu, 12 Aug 2010 04:13:49 +0100 Subject: [RHEL5.7 PATCH 8/8] dm mpath: fix NULL pointer dereference when path parameters missing BZ 673058 Upstream commit 6bbf79a14080a0c61212f53b4b87dc1a99fedf9c Author: Alasdair G Kergon Date: Thu Aug 12 04:13:49 2010 +0100 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 Cc: stable@kernel.org Signed-off-by: Alasdair G Kergon --- 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 b7afe41..33df897 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -693,6 +693,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; } -- 1.7.3.4