]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit703533ce92cfc26cfe8ae52bd696c5516847034a
tree9d92c06722c7200133366d088eea2bafd2a86c08
parent7810342844dc05dab1a86937c5aab8561c9af706
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