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

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