projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32a9a68
)
PCI: Use kzalloc() in pci_create_bus()
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Sun, 15 Mar 2009 19:14:37 +0000
(20:14 +0100)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Fri, 20 Mar 2009 17:48:15 +0000
(10:48 -0700)
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/probe.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/probe.c
b/drivers/pci/probe.c
index 23362e8c696fbb66a9efa68a7a9ef1a399bf0899..9e7d642e66b03c84daa0c6f1520de4641fbeaf55 100644
(file)
--- a/
drivers/pci/probe.c
+++ b/
drivers/pci/probe.c
@@
-1114,7
+1114,7
@@
struct pci_bus * pci_create_bus(struct device *parent,
if (!b)
return NULL;
- dev = k
m
alloc(sizeof(*dev), GFP_KERNEL);
+ dev = k
z
alloc(sizeof(*dev), GFP_KERNEL);
if (!dev){
kfree(b);
return NULL;
@@
-1133,7
+1133,6
@@
struct pci_bus * pci_create_bus(struct device *parent,
list_add_tail(&b->node, &pci_root_buses);
up_write(&pci_bus_sem);
- memset(dev, 0, sizeof(*dev));
dev->parent = parent;
dev->release = pci_release_bus_bridge_dev;
dev_set_name(dev, "pci%04x:%02x", pci_domain_nr(b), bus);