sparc64: Convert GENcopy_{from,to}_user to accurate exception reporting.
authorDavid S. Miller <davem@davemloft.net>
Mon, 15 Aug 2016 22:26:38 +0000 (15:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Nov 2016 09:06:41 +0000 (10:06 +0100)
commit8a444c770f6ecb0fff7eb1d72ccbed9f82ced906
tree3014da2e0cc144a359bba55067b7cc7a63ea224c
parentc718e917b3d375bb016388861a20f169f4e8dce8
sparc64: Convert GENcopy_{from,to}_user to accurate exception reporting.

[ Upstream commit d0796b555ba60c22eb41ae39a8362156cb08eee9 ]

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/GENcopy_from_user.S
arch/sparc/lib/GENcopy_to_user.S
arch/sparc/lib/GENmemcpy.S