Blame SOURCES/0001-Prevent-infinite-recursion-in-dmidecode.c-smbios_set.patch

728caa
From d6fa84f8a80d5e1c526fe675c345f709a700e33e Mon Sep 17 00:00:00 2001
728caa
From: =?UTF-8?q?Josef=20M=C3=B6llers?= <josef.moellers@suse.com>
728caa
Date: Fri, 20 Jul 2018 08:56:48 +0200
728caa
Subject: [PATCH] Prevent infinite recursion in dmidecode.c::smbios_setslot by
728caa
 (#7)
728caa
728caa
Checking that subordinate bus has a number greater than the
728caa
current bus.
728caa
Fixes SUSE bug#1093625
728caa
---
728caa
 src/dmidecode/dmidecode.c | 2 +-
728caa
 1 file changed, 1 insertion(+), 1 deletion(-)
728caa
728caa
diff --git a/src/dmidecode/dmidecode.c b/src/dmidecode/dmidecode.c
728caa
index 1d805bb..a01a6ce 100644
728caa
--- a/src/dmidecode/dmidecode.c
728caa
+++ b/src/dmidecode/dmidecode.c
728caa
@@ -153,7 +153,7 @@ void smbios_setslot(const struct libbiosdevname_state *state,
728caa
 		}
728caa
     
728caa
 		/* Found a PDEV, now is it a bridge? */
728caa
-		if (pdev->sbus != -1) {
728caa
+		if (pdev->sbus != -1  && pdev->sbus > bus) {
728caa
 			smbios_setslot(state, domain, pdev->sbus, -1, -1, type, slot, index, label);
728caa
 		}
728caa
 	}
728caa
-- 
728caa
2.17.2
728caa