sparc64: Convert NGcopy_{from,to}_user to accurate exception reporting.
authorDavid S. Miller <davem@davemloft.net>
Tue, 25 Oct 2016 02:32:12 +0000 (19:32 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Nov 2016 09:06:41 +0000 (10:06 +0100)
commitbfc8be6593097cb074d3912ba2f27565cfbb7d6e
tree341806fad1e75cc7571d45c54af3292f3dc0c48a
parentdc3a7a7d2c85cb3162b46295ecb01ac78f3da1aa
sparc64: Convert NGcopy_{from,to}_user to accurate exception reporting.

[ Upstream commit 7ae3aaf53f1695877ccd5ebbc49ea65991e41f1e ]

Report the exact number of bytes which have not been successfully
copied when an exception occurs, using the running remaining length.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/lib/NGcopy_from_user.S
arch/sparc/lib/NGcopy_to_user.S
arch/sparc/lib/NGmemcpy.S