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
/
mtd
/
bcm47xxpart.c
diff --git
a/drivers/mtd/bcm47xxpart.c
b/drivers/mtd/bcm47xxpart.c
index
0f93d22
..
fc424b1
100644
(file)
--- a/
drivers/mtd/bcm47xxpart.c
+++ b/
drivers/mtd/bcm47xxpart.c
@@
-110,7
+110,7
@@
static int bcm47xxpart_parse(struct mtd_info *master,
blocksize = 0x1000;
/* Alloc */
- parts = k
zalloc(sizeof(struct mtd_partition) * BCM47XXPART_MAX_PARTS
,
+ parts = k
calloc(BCM47XXPART_MAX_PARTS, sizeof(struct mtd_partition)
,
GFP_KERNEL);
if (!parts)
return -ENOMEM;