Commit 0b27e441 authored by Jaroslav Kysela's avatar Jaroslav Kysela

ALSA CVS update - Jaroslav Kysela <perex@suse.cz>

GUS Library
Fixed race - scheduling in interrupt
parent 715fde82
......@@ -334,9 +334,11 @@ static int snd_gf1_pcm_poke_block(snd_gus_card_t *gus, unsigned char *buf,
snd_gf1_poke(gus, pos++, *buf++ ^ invert);
}
}
schedule_timeout(1);
if (signal_pending(current))
return -EAGAIN;
if (count > 0 && !in_interrupt()) {
schedule_timeout(1);
if (signal_pending(current))
return -EAGAIN;
}
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment