synclink fix ldisc buffer argument
authorPaul Fulghum <paulkf@microgate.com>
Mon, 3 Dec 2012 17:13:24 +0000 (11:13 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2013 05:52:23 +0000 (21:52 -0800)
commita6b68a69fa89daeddc6ca6bb90b6f19a86ed7a9f
tree0570429793adb5fba1a3a1f24ee5d669d92c8daa
parent55c7c0fdc5aae43ca7eda3adb22ab782634fcb24
synclink fix ldisc buffer argument

Fix call to line discipline receive_buf by synclink drivers.
Dummy flag buffer argument is ignored by N_HDLC line discipline but might
be of insufficient size if accessed by a different line discipline
selected by mistake. flag buffer allocation now matches max size of data
buffer. Unused char_buf buffers are removed.

Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/pcmcia/synclink_cs.c
drivers/tty/synclink.c
drivers/tty/synclink_gt.c
drivers/tty/synclinkmp.c