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

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