Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 604173ba authored by Wang Qing's avatar Wang Qing Committed by Greg Kroah-Hartman
Browse files

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: default avatarWang Qing <wangqing@vivo.com>
Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d0a2b1d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment