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

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