lkml.org 
[lkml]   [2003]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Linux 2.4.21-ac1
From
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.051 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site