commit | b448a6a2fc5aa7c36403ebfb2dcbf767d3b01eb4 | [log] [tgz] |
---|---|---|
author | Wang Qing <wangqing@vivo.com> | Mon Mar 01 20:05:48 2021 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Apr 21 13:00:51 2021 +0200 |
tree | 7cef8b931e61b264e913541c7f73ed1b0d978ff2 | |
parent | f12e8cf6b18013146741e5075983726f7a00903b [diff] |
arc: kernel: Return -EFAULT if copy_to_user() fails [ Upstream commit 46e152186cd89d940b26726fff11eb3f4935b45a ] The copy_to_user() function returns the number of bytes remaining to be copied, but we want to return -EFAULT if the copy doesn't complete. Signed-off-by: Wang Qing <wangqing@vivo.com> Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Sasha Levin <sashal@kernel.org>