Unverified Commit 12edeb35 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!10074 PCI: of_property: Return error for int_map allocation failure

parents 9676d224 a86ade5c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -238,6 +238,8 @@ static int of_pci_prop_intr_map(struct pci_dev *pdev, struct of_changeset *ocs,
		return 0;

	int_map = kcalloc(map_sz, sizeof(u32), GFP_KERNEL);
	if (!int_map)
		return -ENOMEM;
	mapp = int_map;

	list_for_each_entry(child, &pdev->subordinate->devices, bus_list) {