projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: kzalloc() -> kcalloc()
[linux-block.git]
/
drivers
/
mtd
/
parsers
/
parser_trx.c
diff --git
a/drivers/mtd/parsers/parser_trx.c
b/drivers/mtd/parsers/parser_trx.c
index df360a75e1eb1ac20d258465dab88cd51a8571d4..17ac33599783d0c943a902fe7e69d3a94f2444e1 100644
(file)
--- a/
drivers/mtd/parsers/parser_trx.c
+++ b/
drivers/mtd/parsers/parser_trx.c
@@
-62,7
+62,7
@@
static int parser_trx_parse(struct mtd_info *mtd,
uint8_t curr_part = 0, i = 0;
int err;
- parts = k
zalloc(sizeof(struct mtd_partition) * TRX_PARSER_MAX_PARTS
,
+ parts = k
calloc(TRX_PARSER_MAX_PARTS, sizeof(struct mtd_partition)
,
GFP_KERNEL);
if (!parts)
return -ENOMEM;