n_tty: Line copy to user buffer in canonical mode
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 13:14:17 +0000 (09:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:42:59 +0000 (16:42 -0700)
commit32f13521ca68bc624ff6effc77f308a52b038bf0
tree9d92c06722c7200133366d088eea2bafd2a86c08
parent88bb0de389a464521034e87816e5d6c7c489a664
n_tty: Line copy to user buffer in canonical mode

Instead of pushing one char per loop, pre-compute the data length
to copy and copy all at once.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c