Blame SOURCES/0051-UP-fix-cli-resize.patch

38852f
diff --git a/multipathd/cli_handlers.c b/multipathd/cli_handlers.c
38852f
index 7b1cb62..4b860bb 100644
38852f
--- a/multipathd/cli_handlers.c
38852f
+++ b/multipathd/cli_handlers.c
38852f
@@ -603,7 +603,18 @@ cli_resize(void *v, char **reply, int *len, void *data)
38852f
 	}
38852f
 
38852f
 	pgp = VECTOR_SLOT(mpp->pg, 0);
38852f
+
38852f
+	if (!pgp){
38852f
+		condlog(0, "%s: couldn't get path group. cannot resize",
38852f
+			mapname);
38852f
+		return 1;
38852f
+	}
38852f
 	pp = VECTOR_SLOT(pgp->paths, 0);
38852f
+
38852f
+	if (!pp){
38852f
+		condlog(0, "%s: couldn't get path. cannot resize", mapname);
38852f
+		return 1;
38852f
+	}
38852f
 	if (!pp->udev || sysfs_get_size(pp, &size)) {
38852f
 		condlog(0, "%s: couldn't get size for sysfs. cannot resize",
38852f
 			mapname);