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: kzalloc() -> kcalloc()
[linux-2.6-microblaze.git]
/
sound
/
pci
/
ctxfi
/
ctdaio.c
diff --git
a/sound/pci/ctxfi/ctdaio.c
b/sound/pci/ctxfi/ctdaio.c
index
7f089cb
..
f35a734
100644
(file)
--- a/
sound/pci/ctxfi/ctdaio.c
+++ b/
sound/pci/ctxfi/ctdaio.c
@@
-398,7
+398,8
@@
static int dao_rsc_init(struct dao *dao,
if (err)
return err;
- dao->imappers = kzalloc(sizeof(void *)*desc->msr*2, GFP_KERNEL);
+ dao->imappers = kzalloc(array3_size(sizeof(void *), desc->msr, 2),
+ GFP_KERNEL);
if (!dao->imappers) {
err = -ENOMEM;
goto error1;