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

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