Dan Carpenter
1fba84f3c4
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 <[email protected] >
Signed-off-by: Jens Axboe <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2021-03-09 11:09:39 +01:00
..
aoe
drbd
mtip32xx
paride
rsxx
rsxx: Return -EFAULT if copy_to_user() fails
2021-03-09 11:09:39 +01:00
xen-blkback
xen-blkback: fix error handling in xen_blkbk_map()
2021-02-23 15:02:26 +01:00
zram
zsmalloc: account the number of compacted pages correctly
2021-03-07 12:20:49 +01:00
amiflop.c
ataflop.c
brd.c
brd: check and limit max_part par
2020-02-24 08:37:02 +01:00
cryptoloop.c
floppy.c
floppy: reintroduce O_NDELAY fix
2021-03-04 10:26:47 +01:00
Kconfig
block: rsxx: select CONFIG_CRC32
2021-01-17 14:05:36 +01:00
loop.c
block: loop: set discard granularity and alignment for block device backed loop
2020-09-03 11:27:01 +02:00
loop.h
Makefile
nbd.c
nbd: handle device refs for DESTROY_ON_DISCONNECT properly
2021-03-07 12:20:42 +01:00
null_blk.h
null_blk_main.c
null_blk: fix passing of REQ_FUA flag in null_handle_rq
2020-09-03 11:26:55 +02:00
null_blk_zoned.c
null_blk: Fix zone size initialization
2021-01-06 14:48:37 +01:00
pktcdvd.c
ps3disk.c
ps3disk: use the default segment boundary
2020-06-24 17:50:15 +02:00
ps3vram.c
rbd.c
rbd: require global CAP_SYS_ADMIN for mapping and unmapping
2020-09-17 13:47:53 +02:00
rbd_types.h
skd_main.c
skd_s1120.h
sunvdc.c
swim.c
swim3.c
swim_asm.S
sx8.c
umem.c
umem.h
virtio_blk.c
block: virtio_blk: fix handling single range discard request
2020-09-03 11:26:54 +02:00
xen-blkfront.c
xen-blkfront: allow discard-* nodes to be optional
2021-02-03 23:25:58 +01:00
xsysace.c
z2ram.c