• P
    [PATCH] new tty buffering locking fix · 808249ce
    Paul Fulghum 提交于
    Change locking in the new tty buffering facility from using tty->read_lock,
    which is currently ignored by drivers and thus ineffective.  New locking
    uses a new tty buffering specific lock enforced centrally in the tty
    buffering code.
    
    Two drivers (esp and cyclades) are updated to use the tty buffering
    functions instead of accessing tty buffering internals directly.  This is
    required for the new locking to work.
    
    Minor checks for NULL buffers added to
    tty_prepare_flip_string/tty_prepare_flip_string_flags
    Signed-off-by: NPaul Fulghum <paulkf@microgate.com>
    Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Signed-off-by: NAndrew Morton <akpm@osdl.org>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    808249ce
tty_io.c 80.2 KB