Blame SOURCES/0025-scsi-initialize-parent-inside-the-loop-692.patch

99c779
From 58b09584280dfd1a7a6bb86b3c20590e3048571d Mon Sep 17 00:00:00 2001
99c779
From: Dan Callaghan <dcallagh@redhat.com>
99c779
Date: Wed, 29 Jul 2015 18:09:06 +1000
99c779
Subject: [PATCH 25/26] scsi: initialize parent inside the loop (#692)
99c779
99c779
This avoids accidentally parenting a SCSI device onto the wrong host
99c779
from the previous iteration of the loop, if no parent device was found
99c779
in the current iteration.
99c779
---
99c779
 src/core/scsi.cc | 2 +-
99c779
 1 file changed, 1 insertion(+), 1 deletion(-)
99c779
99c779
diff --git a/src/core/scsi.cc b/src/core/scsi.cc
99c779
index 6cebbf5..d074033 100644
99c779
--- a/src/core/scsi.cc
99c779
+++ b/src/core/scsi.cc
99c779
@@ -662,7 +662,6 @@ static void scan_sg(hwNode & n)
99c779
   string host = "";
99c779
   string businfo = "";
99c779
   string adapter_businfo = "";
99c779
-  hwNode *parent = NULL;
99c779
   int emulated = 0;
99c779
   bool ghostdeventry = false;
99c779
   size_t j;
99c779
@@ -701,6 +700,7 @@ static void scan_sg(hwNode & n)
99c779
       .parent().businfo();
99c779
 
99c779
   hwNode device = hwNode("generic");
99c779
+  hwNode *parent = NULL;
99c779
 
99c779
   switch (m_id.scsi_type)
99c779
   {
99c779
-- 
99c779
2.10.2
99c779