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