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: Avoid endless sleep after disconnect
[pandora-kernel.git]
/
sound
/
core
/
control.c
diff --git
a/sound/core/control.c
b/sound/core/control.c
index
699ccf5
..
5511307
100644
(file)
--- a/
sound/core/control.c
+++ b/
sound/core/control.c
@@
-1436,6
+1436,8
@@
static ssize_t snd_ctl_read(struct file *file, char __user *buffer,
spin_unlock_irq(&ctl->read_lock);
schedule();
remove_wait_queue(&ctl->change_sleep, &wait);
+ if (ctl->card->shutdown)
+ return -ENODEV;
if (signal_pending(current))
return -ERESTARTSYS;
spin_lock_irq(&ctl->read_lock);