Re:Re: [PATCH] arc: kernel: Return -EFAULT if copy_to_user() fails
From: 王擎
Date: Tue Mar 09 2021 - 21:51:40 EST
Subject: Re: [PATCH] arc: kernel: Return -EFAULT if copy_to_user() fails>On 3/1/21 4:05 AM, Wang Qing wrote:
>> 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@xxxxxxxx>
>
>Acked-by: Vineet Gupta <vgupta@xxxxxxxxxxxx>
>
>Do you want me to pick this up via ARC tree ?
Yes, thank you for picking this up.
Wangqing
>
>Thx,
>-Vineet