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

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