git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
sound
/
core
/
seq
/
oss
/
seq_oss_midi.c
diff --git
a/sound/core/seq/oss/seq_oss_midi.c
b/sound/core/seq/oss/seq_oss_midi.c
index
f7e82fc
..
60fb5fb
100644
(file)
--- a/
sound/core/seq/oss/seq_oss_midi.c
+++ b/
sound/core/seq/oss/seq_oss_midi.c
@@
-171,7
+171,7
@@
snd_seq_oss_midi_check_new_port(snd_seq_port_info_t *pinfo)
/*
* allocate midi info record
*/
- if ((mdev =
snd_kcalloc(
sizeof(*mdev), GFP_KERNEL)) == NULL) {
+ if ((mdev =
kcalloc(1,
sizeof(*mdev), GFP_KERNEL)) == NULL) {
snd_printk(KERN_ERR "can't malloc midi info\n");
return -ENOMEM;
}