From: Takashi Iwai Date: Fri, 28 Apr 2006 13:13:41 +0000 (+0200) Subject: [ALSA] Insert might_sleep() in snd_iprintf() X-Git-Tag: v2.6.18-rc1~1081^2~321 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f001c3acf64b8ca18fe40af592629abb261b321e;p=linux-2.6 [ALSA] Insert might_sleep() in snd_iprintf() Inserted might_sleep() in snd_iprintf() for sanity check. Signed-off-by: Takashi Iwai --- diff --git a/sound/core/info.c b/sound/core/info.c index 86366839c4..4188f76add 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,...) int len, res; int err = 0; + might_sleep(); if (buffer->stop || buffer->error) return 0; len = buffer->len - buffer->size;