sparc64: Convert copy_in_user to accurate exception reporting.
authorDavid S. Miller <davem@davemloft.net>
Mon, 15 Aug 2016 22:08:18 +0000 (15:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Nov 2016 09:06:41 +0000 (10:06 +0100)
commitc718e917b3d375bb016388861a20f169f4e8dce8
tree703a78e8c5c8120fc6affa71bcb877b8fd846ab4
parentdd8a78b2b6ad24c7416dfe0443a31456cbad3b34
sparc64: Convert copy_in_user to accurate exception reporting.

[ Upstream commit 0096ac9f47b1a2e851b3165d44065d18e5f13d58 ]

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/copy_in_user.S