sparc64: Convert U3copy_{from,to}_user to accurate exception reporting.
commitac663c54f40b2830b1ca32d1ae9d683fe248b14c
authorDavid S. Miller <davem@davemloft.net>
Tue, 25 Oct 2016 04:20:35 +0000 (24 21:20 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Nov 2016 09:11:38 +0000 (21 10:11 +0100)
tree0f1a9e17014f811e7e78e0e8ca2e076cbf4daf8f
parentd91bb7a87e261436efcc18f27415690aa3a2d32e
sparc64: Convert U3copy_{from,to}_user to accurate exception reporting.

[ Upstream commit ee841d0aff649164080e445e84885015958d8ff4 ]

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/U3copy_from_user.S
arch/sparc/lib/U3copy_to_user.S
arch/sparc/lib/U3memcpy.S