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

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