Blame SOURCES/0200-RHBZ-1402092-orphan-status.patch

4ae388
---
4ae388
 libmultipath/print.c |    7 ++++++-
4ae388
 1 file changed, 6 insertions(+), 1 deletion(-)
4ae388
4ae388
Index: multipath-tools-130222/libmultipath/print.c
4ae388
===================================================================
4ae388
--- multipath-tools-130222.orig/libmultipath/print.c
4ae388
+++ multipath-tools-130222/libmultipath/print.c
4ae388
@@ -386,7 +386,9 @@ snprint_dev_t (char * buff, size_t len,
4ae388
 static int
4ae388
 snprint_offline (char * buff, size_t len, struct path * pp)
4ae388
 {
4ae388
-	if (pp->offline)
4ae388
+	if (!pp || !pp->mpp)
4ae388
+		return snprintf(buff, len, "unknown");
4ae388
+	else if (pp->offline)
4ae388
 		return snprintf(buff, len, "offline");
4ae388
 	else
4ae388
 		return snprintf(buff, len, "running");
4ae388
@@ -395,6 +397,9 @@ snprint_offline (char * buff, size_t len
4ae388
 static int
4ae388
 snprint_chk_state (char * buff, size_t len, struct path * pp)
4ae388
 {
4ae388
+	if (!pp || !pp->mpp)
4ae388
+		return snprintf(buff, len, "undef");
4ae388
+
4ae388
 	switch (pp->state) {
4ae388
 	case PATH_UP:
4ae388
 		return snprintf(buff, len, "ready");