From: Mark Tomlinson Date: Mon, 18 May 2015 00:01:48 +0000 (+1200) Subject: n_tty: Fix calculation of size in canon_copy_from_read_buf X-Git-Tag: omap-for-v4.2/wakeirq-drivers~2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da555db6b06340e3f6b4b0a0448c30bebfe23b0a;p=pandora-kernel.git n_tty: Fix calculation of size in canon_copy_from_read_buf There was a hardcoded value of 4096 which should have been N_TTY_BUF_SIZE. This caused reads from tty to fail with EFAULT when they shouldn't have done if N_TTY_BUF_SIZE was declared to be something other than 4096. Signed-off-by: Mark Tomlinson Reviewed-by: Peter Hurley Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed