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]
/
drivers
/
dma
/
bestcomm
/
bestcomm.c
diff --git
a/drivers/dma/bestcomm/bestcomm.c
b/drivers/dma/bestcomm/bestcomm.c
index
7a67b83
..
d91cbbe
100644
(file)
--- a/
drivers/dma/bestcomm/bestcomm.c
+++ b/
drivers/dma/bestcomm/bestcomm.c
@@
-87,7
+87,8
@@
bcom_task_alloc(int bd_count, int bd_size, int priv_size)
/* Init the BDs, if needed */
if (bd_count) {
- tsk->cookie = kmalloc(sizeof(void*) * bd_count, GFP_KERNEL);
+ tsk->cookie = kmalloc_array(bd_count, sizeof(void *),
+ GFP_KERNEL);
if (!tsk->cookie)
goto error;