summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/parsers/parser_trx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/parsers/parser_trx.c')
-rw-r--r--drivers/mtd/parsers/parser_trx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/parsers/parser_trx.c b/drivers/mtd/parsers/parser_trx.c
index df360a7..17ac335 100644
--- 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 = kzalloc(sizeof(struct mtd_partition) * TRX_PARSER_MAX_PARTS,
+ parts = kcalloc(TRX_PARSER_MAX_PARTS, sizeof(struct mtd_partition),
GFP_KERNEL);
if (!parts)
return -ENOMEM;
OpenPOWER on IntegriCloud