Skip to content

Commit c7c337c

Browse files
Liao Pingfangbjorn-helgaas
authored andcommitted
PCI: Fix error in panic message
Use kzalloc() instead of kmalloc() in the panic message. [bhelgaas: drop similar ibmphp_pci.c change since it's not obviously correct] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Liao Pingfang <[email protected]> Signed-off-by: Yi Wang <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 16bbbc8 commit c7c337c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/setup-bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static void pdev_sort_resources(struct pci_dev *dev, struct list_head *head)
152152

153153
tmp = kzalloc(sizeof(*tmp), GFP_KERNEL);
154154
if (!tmp)
155-
panic("pdev_sort_resources(): kmalloc() failed!\n");
155+
panic("%s: kzalloc() failed!\n", __func__);
156156
tmp->res = r;
157157
tmp->dev = dev;
158158

0 commit comments

Comments
 (0)