[ALSA] Insert might_sleep() in snd_iprintf()
[linux-2.6.git] / 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;