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

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