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

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