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

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