[dm-devel] [PATCH 9/9] multipath: fix segfault with disable_changed_wwids

Benjamin Marzinski bmarzins at redhat.com
Fri Apr 7 06:16:38 UTC 2017


When a path wwid changes, uev_update_path was dereferencing pp->mpp
without checking if it was NULL.

Cc: Shichangkuo <shi.changkuo at h3c.com>
Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>
---
 multipathd/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/multipathd/main.c b/multipathd/main.c
index 995e580..0c61caa 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -1002,7 +1002,8 @@ uev_update_path (struct uevent *uev, struct vectors * vecs)
 				if (!pp->wwid_changed) {
 					pp->wwid_changed = 1;
 					pp->tick = 1;
-					dm_fail_path(pp->mpp->alias, pp->dev_t);
+					if (pp->mpp)
+						dm_fail_path(pp->mpp->alias, pp->dev_t);
 				}
 				goto out;
 			} else
-- 
1.8.3.1




More information about the dm-devel mailing list