aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--block/partitions/aix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/partitions/aix.c b/block/partitions/aix.c
index 43be471d9b1d..0a6ed546331d 100644
--- a/block/partitions/aix.c
+++ b/block/partitions/aix.c
@@ -215,7 +215,7 @@ int aix_partition(struct parsed_partitions *state)
215 numlvs = be16_to_cpu(p->numlvs); 215 numlvs = be16_to_cpu(p->numlvs);
216 put_dev_sector(sect); 216 put_dev_sector(sect);
217 } 217 }
218 lvip = kzalloc(sizeof(struct lv_info) * state->limit, GFP_KERNEL); 218 lvip = kcalloc(state->limit, sizeof(struct lv_info), GFP_KERNEL);
219 if (!lvip) 219 if (!lvip)
220 return 0; 220 return 0;
221 if (numlvs && (d = read_part_sector(state, vgda_sector + 1, &sect))) { 221 if (numlvs && (d = read_part_sector(state, vgda_sector + 1, &sect))) {