projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16bbbc8
)
PCI: Fix error in panic message
author
Liao Pingfang
<liao.pingfang@zte.com.cn>
Thu, 9 Jul 2020 07:28:28 +0000
(15:28 +0800)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Thu, 9 Jul 2020 21:01:09 +0000
(16:01 -0500)
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>
drivers/pci/setup-bus.c
patch
|
blob
|
history
diff --git
a/drivers/pci/setup-bus.c
b/drivers/pci/setup-bus.c
index 9b94b1f16d80ea7837f13bb979defbb37520b27b..4d870ed893856f595350c1bb34969bacadbe9e46 100644
(file)
--- a/
drivers/pci/setup-bus.c
+++ b/
drivers/pci/setup-bus.c
@@
-152,7
+152,7
@@
static void pdev_sort_resources(struct pci_dev *dev, struct list_head *head)
tmp = kzalloc(sizeof(*tmp), GFP_KERNEL);
if (!tmp)
- panic("
pdev_sort_resources(): kmalloc() failed!\n"
);
+ panic("
%s: kzalloc() failed!\n", __func__
);
tmp->res = r;
tmp->dev = dev;