]> git.baikalelectronics.ru Git - kernel.git/commit
arc: kernel: Return -EFAULT if copy_to_user() fails
authorWang Qing <wangqing@vivo.com>
Mon, 1 Mar 2021 12:05:48 +0000 (20:05 +0800)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 22 Mar 2021 17:05:43 +0000 (10:05 -0700)
commit81faabbfe7903f4ad7bcc0e3156e54e88d9022ab
treeb8deeb0964152baa2379a015507ae4209b3b71df
parenta1217f63d82e2ef32f5b9cb7723305f6e55e6258
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: Wang Qing <wangqing@vivo.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/signal.c