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.3
[linux-2.6.git]
/
sound
/
core
/
seq
/
seq_ports.c
diff --git
a/sound/core/seq/seq_ports.c
b/sound/core/seq/seq_ports.c
index
6ce21e5
..
b976951
100644
(file)
--- a/
sound/core/seq/seq_ports.c
+++ b/
sound/core/seq/seq_ports.c
@@
-141,7
+141,7
@@
client_port_t *snd_seq_create_port(client_t *client, int port)
}
/* create a new port */
}
/* create a new port */
- new_port =
snd_kcalloc(sizeof(client_port_
t), GFP_KERNEL);
+ new_port =
kcalloc(1, sizeof(*new_por
t), GFP_KERNEL);
if (! new_port) {
snd_printd("malloc failed for registering client port\n");
return NULL; /* failure, out of memory */
if (! new_port) {
snd_printd("malloc failed for registering client port\n");
return NULL; /* failure, out of memory */
@@
-488,7
+488,7
@@
int snd_seq_port_connect(client_t *connector,
unsigned long flags;
int exclusive;
unsigned long flags;
int exclusive;
- subs =
snd_kcalloc(
sizeof(*subs), GFP_KERNEL);
+ subs =
kcalloc(1,
sizeof(*subs), GFP_KERNEL);
if (! subs)
return -ENOMEM;
if (! subs)
return -ENOMEM;