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: kmalloc() -> kmalloc_array()
[linux-2.6-microblaze.git]
/
block
/
partitions
/
ldm.c
diff --git
a/block/partitions/ldm.c
b/block/partitions/ldm.c
index
2a365c7
..
0417937
100644
(file)
--- a/
block/partitions/ldm.c
+++ b/
block/partitions/ldm.c
@@
-378,7
+378,7
@@
static bool ldm_validate_tocblocks(struct parsed_partitions *state,
BUG_ON(!state || !ldb);
ph = &ldb->ph;
tb[0] = &ldb->toc;
- tb[1] = kmalloc
(sizeof(*tb[1]) * 3
, GFP_KERNEL);
+ tb[1] = kmalloc
_array(3, sizeof(*tb[1])
, GFP_KERNEL);
if (!tb[1]) {
ldm_crit("Out of memory.");
goto err;