diff options
Diffstat (limited to 'block/partitions/ldm.c')
| -rw-r--r-- | block/partitions/ldm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/partitions/ldm.c b/block/partitions/ldm.c index 2a365c756648..0417937dfe99 100644 --- a/block/partitions/ldm.c +++ b/block/partitions/ldm.c | |||
| @@ -378,7 +378,7 @@ static bool ldm_validate_tocblocks(struct parsed_partitions *state, | |||
| 378 | BUG_ON(!state || !ldb); | 378 | BUG_ON(!state || !ldb); |
| 379 | ph = &ldb->ph; | 379 | ph = &ldb->ph; |
| 380 | tb[0] = &ldb->toc; | 380 | tb[0] = &ldb->toc; |
| 381 | tb[1] = kmalloc(sizeof(*tb[1]) * 3, GFP_KERNEL); | 381 | tb[1] = kmalloc_array(3, sizeof(*tb[1]), GFP_KERNEL); |
| 382 | if (!tb[1]) { | 382 | if (!tb[1]) { |
| 383 | ldm_crit("Out of memory."); | 383 | ldm_crit("Out of memory."); |
| 384 | goto err; | 384 | goto err; |
