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:
148acff
)
dm mpath: fix test for reinstate_path
author
Alasdair G Kergon
<agk@redhat.com>
Mon, 21 Jul 2008 11:00:31 +0000
(12:00 +0100)
committer
Alasdair G Kergon
<agk@redhat.com>
Mon, 21 Jul 2008 11:00:31 +0000
(12:00 +0100)
Fix test for reinstate_path method before attempting to use it.
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: Julia Lawall <julia@diku.dk>
drivers/md/dm-mpath.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-mpath.c
b/drivers/md/dm-mpath.c
index 230d7890ec8a857af525d87808c2be1d61bcc0e6..fea966d66f9838c140176a7dbd0ed8223e908f44 100644
(file)
--- a/
drivers/md/dm-mpath.c
+++ b/
drivers/md/dm-mpath.c
@@
-871,7
+871,7
@@
static int reinstate_path(struct pgpath *pgpath)
if (pgpath->path.is_active)
goto out;
- if (!pgpath->pg->ps.type) {
+ if (!pgpath->pg->ps.type
->reinstate_path
) {
DMWARN("Reinstate path not supported by path selector %s",
pgpath->pg->ps.type->name);
r = -EINVAL;