linux/drivers/block
Dan Carpenter 77516d25f5 rsxx: Return -EFAULT if copy_to_user() fails
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>
2021-03-03 06:48:44 -07:00
..
aoe block: Replace lkml.org links with lore 2021-02-10 20:07:21 -07:00
drbd for-5.12/drivers-2021-02-17 2021-02-21 11:06:54 -08:00
mtip32xx
null_blk for-5.12/block-2021-02-17 2021-02-21 11:02:48 -08:00
paride
rnbd
rsxx rsxx: Return -EFAULT if copy_to_user() fails 2021-03-03 06:48:44 -07:00
xen-blkback block: Add bio_max_segs 2021-02-26 15:49:51 -07:00
zram zsmalloc: account the number of compacted pages correctly 2021-02-26 09:41:01 -08:00
Kconfig - added n64 block driver 2021-02-25 12:18:21 -08:00
Makefile - added n64 block driver 2021-02-25 12:18:21 -08:00
amiflop.c
ataflop.c
brd.c
cryptoloop.c
floppy.c floppy: reintroduce O_NDELAY fix 2021-02-04 13:00:24 +03:00
loop.c block-5.12-2021-02-27 2021-02-28 11:23:38 -08:00
loop.h
n64cart.c n64: store dev instance into disk private data 2021-02-21 23:37:52 +01:00
nbd.c nbd: handle device refs for DESTROY_ON_DISCONNECT properly 2021-02-22 13:17:23 -07:00
pktcdvd.c
ps3disk.c
ps3vram.c
rbd.c
rbd_types.h
sunvdc.c
swim.c
swim3.c
swim_asm.S
sx8.c
umem.c
umem.h
virtio_blk.c virtio: features, fixes 2021-02-25 12:21:08 -08:00
xen-blkfront.c
xsysace.c
z2ram.c