projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git]
/
drivers
/
pci
/
pci-sysfs.c
diff --git
a/drivers/pci/pci-sysfs.c
b/drivers/pci/pci-sysfs.c
index
788a200
..
0c4653c
100644
(file)
--- a/
drivers/pci/pci-sysfs.c
+++ b/
drivers/pci/pci-sysfs.c
@@
-1076,7
+1076,7
@@
void pci_create_legacy_files(struct pci_bus *b)
{
int error;
- b->legacy_io = k
zalloc(sizeof(struct bin_attribute) * 2
,
+ b->legacy_io = k
calloc(2, sizeof(struct bin_attribute)
,
GFP_ATOMIC);
if (!b->legacy_io)
goto kzalloc_err;