Skip to content
Commit 46e15218 authored by Wang Qing's avatar Wang Qing Committed by Vineet Gupta
Browse files

arc: kernel: Return -EFAULT if copy_to_user() fails



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>
parent fac24521
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