Skip to content

Commit 130f45e

Browse files
ssqrelijinxia
authored andcommitted
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 7aaff68. Signed-off-by: Jie Deng <jie.deng@intel.com>
1 parent 05f8fd7 commit 130f45e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

devicemodel/hw/pci/core.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,9 +1272,6 @@ deinit_pci(struct vmctx *ctx)
12721272
func, fi);
12731273
}
12741274
}
1275-
1276-
pci_businfo[bus] = NULL;
1277-
free(bi);
12781275
}
12791276
}
12801277

0 commit comments

Comments
 (0)