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

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