projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5af568c
)
dm mpath: fix NULL pointer dereference when path parameters missing
author
Alasdair G Kergon
<agk@redhat.com>
Thu, 12 Aug 2010 03:13:49 +0000
(
04:13
+0100)
committer
Alasdair G Kergon
<agk@redhat.com>
Thu, 12 Aug 2010 03:13:49 +0000
(
04:13
+0100)
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>
drivers/md/dm-mpath.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-mpath.c
b/drivers/md/dm-mpath.c
index 826bce7343b3697e5abdfd4c62e760250f6ecf3a..da2223aa727f86da02c13629e9f559163f858b9b 100644
(file)
--- 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;
}