On Sad, 2003-06-14 at 10:57, walt wrote:
> This is the offending line in serialmidi.c:
>
> if (tty->count > 1) {
> snd_printk(KERN_ERR "tty %s is already used", serial->sdev);
>
> The compilation will finish if I make this change:
>
> if (atomic_read(&(tty->count)) > 1) {
>
> Since I don't have a clue what I'm doing this is probably not the right fix :0)
> I suspect that changing the alsa code is starting at the wrong end of the
> problem anyway.
The tty code changed to atomic counters to fix a race. Your fix is
right.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Jun 15 2003 - 22:00:40 EST