From 130f45e9cfa05b0e9f25939b6e09a6b48f9c91bb Mon Sep 17 00:00:00 2001 From: Jie Deng Date: Tue, 22 May 2018 01:19:28 +0800 Subject: [PATCH] Revert "dm: free entries in pci_businfo[] when deinit" This commit is reported to cause UOS reboot fail becasue the pci_businfo[] only be allocated when calling pci_parse_slot in dm initialization while UOS reboot will not allocate again. So we can't free it here. This reverts commit 7aaff68798a4ba3564e4d913678eb84c610dad6c. Signed-off-by: Jie Deng --- devicemodel/hw/pci/core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/devicemodel/hw/pci/core.c b/devicemodel/hw/pci/core.c index 6cd30553a..1b7a7606b 100644 --- a/devicemodel/hw/pci/core.c +++ b/devicemodel/hw/pci/core.c @@ -1272,9 +1272,6 @@ deinit_pci(struct vmctx *ctx) func, fi); } } - - pci_businfo[bus] = NULL; - free(bi); } }