Blame SOURCES/0177-libmultipath-correctly-initialize-pp-sg_id.patch

f20720
From e2b87038125c79089e0bd4c6fd905667c5108740 Mon Sep 17 00:00:00 2001
f20720
From: Mike Christie <mchristi@redhat.com>
f20720
Date: Tue, 9 Aug 2016 13:36:04 -0500
f20720
Subject: [PATCH 01/11] libmultipath: correctly initialize pp->sg_id
f20720
f20720
For BZ 1348372 from upstream:
f20720
f20720
commit b4d9ca8dc8bbfbd3782bf4cf2cb1a440685ccd07
f20720
Author: Hannes Reinecke <hare@suse.de>
f20720
Date:   Wed Nov 11 13:38:57 2015 +0100
f20720
f20720
    libmultipath: correctly initialize pp->sg_id
f20720
f20720
    The default SCSI protocol is 'SCSI_PROTOCOL_UNSPEC';
f20720
    '0' is SCSI_PROTOCOL_FCP.
f20720
f20720
    Signed-off-by: Hannes Reinecke <hare@suse.de>
f20720
f20720
Signed-off-by: Mike Christie <mchristi@redhat.com>
f20720
---
f20720
 libmultipath/structs.c | 1 +
f20720
 1 file changed, 1 insertion(+)
f20720
f20720
diff --git a/libmultipath/structs.c b/libmultipath/structs.c
f20720
index 30d247d..26a6a3b 100644
f20720
--- a/libmultipath/structs.c
f20720
+++ b/libmultipath/structs.c
f20720
@@ -94,6 +94,7 @@ alloc_path (void)
f20720
 		pp->sg_id.channel = -1;
f20720
 		pp->sg_id.scsi_id = -1;
f20720
 		pp->sg_id.lun = -1;
f20720
+		pp->sg_id.proto_id = SCSI_PROTOCOL_UNSPEC;
f20720
 		pp->fd = -1;
f20720
 		pp->priority = PRIO_UNDEF;
f20720
 	}
f20720
-- 
f20720
1.8.3.1
f20720