Skip to content

Commit

Permalink
[ALSA] Insert might_sleep() in snd_iprintf()
Browse files Browse the repository at this point in the history
Inserted might_sleep() in snd_iprintf() for sanity check.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Jun 22, 2006
1 parent d689e34 commit f001c3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/core/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f001c3a

Please sign in to comment.