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

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