git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: seq: Fix missing NULL check at remove_events ioctl
[pandora-kernel.git]
/
sound
/
core
/
seq
/
seq_clientmgr.c
diff --git
a/sound/core/seq/seq_clientmgr.c
b/sound/core/seq/seq_clientmgr.c
index
4dc6bae
..
ecfbf5f
100644
(file)
--- a/
sound/core/seq/seq_clientmgr.c
+++ b/
sound/core/seq/seq_clientmgr.c
@@
-1950,7
+1950,7
@@
static int snd_seq_ioctl_remove_events(struct snd_seq_client *client,
* No restrictions so for a user client we can clear
* the whole fifo
*/
- if (client->type == USER_CLIENT)
+ if (client->type == USER_CLIENT
&& client->data.user.fifo
)
snd_seq_fifo_clear(client->data.user.fifo);
}