[ALSA] Insert might_sleep() in snd_iprintf()
authorTakashi Iwai <tiwai@suse.de>
Fri, 28 Apr 2006 13:13:41 +0000 (15:13 +0200)
committerJaroslav Kysela <perex@suse.cz>
Thu, 22 Jun 2006 19:33:11 +0000 (21:33 +0200)
Inserted might_sleep() in snd_iprintf() for sanity check.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/info.c

index 86366839c4bb78a7a8d152c6ead9f6ef25fcf945..4188f76add75562d22bfe3a579c433eee76482ad 100644 (file)
@@ -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;