Files
linux/drivers/md
Dan Carpenter e7728e18a7 bcache: Fix an error code in bch_dump_read()
[ Upstream commit d66c9920c0 ]

The copy_to_user() function returns the number of bytes remaining to be
copied, but the intention here was to return -EFAULT if the copy fails.

Fixes: cafe563591 ("bcache: A block layer cache")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:51:09 +01:00
..
2016-11-01 09:43:26 -06:00
2019-10-05 13:10:03 +02:00
2007-10-20 02:01:26 +01:00
2019-12-17 20:34:52 +01:00
2017-06-09 09:27:32 -06:00
2018-06-08 11:59:51 -04:00
2018-06-08 11:59:51 -04:00