linux_dsm_epyc7002/arch/arc/kernel
Wang Qing b448a6a2fc 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>
2021-04-21 13:00:51 +02:00
..
.gitignore
arc_hostlink.c
arcksyms.c
asm-offsets.c
ctx_sw_asm.S
ctx_sw.c
devtree.c
disasm.c
entry-arcv2.S
entry-compact.S
entry.S
fpu.c
head.S
intc-arcv2.c
intc-compact.c
irq.c
jump_label.c
kgdb.c
kprobes.c
Makefile
mcip.c
module.c
perf_event.c
process.c
ptrace.c
reset.c
setup.c
signal.c arc: kernel: Return -EFAULT if copy_to_user() fails 2021-04-21 13:00:51 +02:00
smp.c
stacktrace.c
sys.c
traps.c
troubleshoot.c
unaligned.c
unwind.c
vmlinux.lds.S