Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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/1594279708-34369-1-git-send-email-wang.yi59@zte.com.cn
Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn>
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

authored by

Liao Pingfang and committed by
Bjorn Helgaas
c7c337c5 16bbbc87

+1 -1
+1 -1
drivers/pci/setup-bus.c
··· 152 152 153 153 tmp = kzalloc(sizeof(*tmp), GFP_KERNEL); 154 154 if (!tmp) 155 - panic("pdev_sort_resources(): kmalloc() failed!\n"); 155 + panic("%s: kzalloc() failed!\n", __func__); 156 156 tmp->res = r; 157 157 tmp->dev = dev; 158 158