linux_dsm_epyc7002/drivers/block
Dan Carpenter 5cc0813e7b rsxx: Return -EFAULT if copy_to_user() fails
[ Upstream commit 77516d25f54912a7baedeeac1b1b828b6f285152 ]

The copy_to_user() function returns the number of bytes remaining but
we want to return -EFAULT to the user if it can't complete the copy.
The "st" variable only holds zero on success or negative error codes on
failure so the type should be int.

Fixes: 36f988e978 ("rsxx: Adding in debugfs entries.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-09 11:11:15 +01:00
..
aoe
drbd
mtip32xx
paride
rnbd
rsxx rsxx: Return -EFAULT if copy_to_user() fails 2021-03-09 11:11:15 +01:00
xen-blkback
zram zsmalloc: account the number of compacted pages correctly 2021-03-07 12:34:15 +01:00
amiflop.c
ataflop.c
brd.c
cryptoloop.c
floppy.c floppy: reintroduce O_NDELAY fix 2021-03-04 11:38:33 +01:00
Kconfig
loop.c
loop.h
Makefile
nbd.c nbd: handle device refs for DESTROY_ON_DISCONNECT properly 2021-03-07 12:34:06 +01:00
null_blk_main.c
null_blk_trace.c
null_blk_trace.h
null_blk_zoned.c
null_blk.h
pktcdvd.c
ps3disk.c
ps3vram.c
rbd_types.h
rbd.c
skd_main.c
skd_s1120.h
sunvdc.c
swim3.c
swim_asm.S
swim.c
sx8.c
umem.c
umem.h
virtio_blk.c
xen-blkfront.c
xsysace.c
z2ram.c