git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: kmalloc() -> kmalloc_array()
[sfrench/cifs-2.6.git]
/
sound
/
core
/
seq
/
seq_midi_emul.c
diff --git
a/sound/core/seq/seq_midi_emul.c
b/sound/core/seq/seq_midi_emul.c
index 9e2912e3e80fd6822324198def600b60f3e7d709..288f839a554b5afbfbb7421d8bc464e6c045d86c 100644
(file)
--- a/
sound/core/seq/seq_midi_emul.c
+++ b/
sound/core/seq/seq_midi_emul.c
@@
-657,7
+657,7
@@
static struct snd_midi_channel *snd_midi_channel_init_set(int n)
struct snd_midi_channel *chan;
int i;
- chan = kmalloc
(n *
sizeof(struct snd_midi_channel), GFP_KERNEL);
+ chan = kmalloc
_array(n,
sizeof(struct snd_midi_channel), GFP_KERNEL);
if (chan) {
for (i = 0; i < n; i++)
snd_midi_channel_init(chan+i, i);