aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-04-28 09:13:41 -0400
committerJaroslav Kysela <perex@suse.cz>2006-06-22 15:33:11 -0400
commitf001c3acf64b8ca18fe40af592629abb261b321e (patch)
tree20eeb99fe71d2128e6dcd5cfcb16d73b6315aa81 /sound/core
parentd689e34b524b69c111db0b7c844d71c8e1a53b15 (diff)
[ALSA] Insert might_sleep() in snd_iprintf()
Inserted might_sleep() in snd_iprintf() for sanity check. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/core/info.c b/sound/core/info.c
index 86366839c4bb..4188f76add75 100644
--- a/sound/core/info.c
+++ b/sound/core/info.c
@@ -114,6 +114,7 @@ int snd_iprintf(struct snd_info_buffer *buffer, char *fmt,...)
114 int len, res; 114 int len, res;
115 int err = 0; 115 int err = 0;
116 116
117 might_sleep();
117 if (buffer->stop || buffer->error) 118 if (buffer->stop || buffer->error)
118 return 0; 119 return 0;
119 len = buffer->len - buffer->size; 120 len = buffer->len - buffer->size;