diff options
| author | Andreas Gruenbacher <[email protected]> | 2021-07-15 20:31:02 +0000 |
|---|---|---|
| committer | Andreas Gruenbacher <[email protected]> | 2021-10-24 13:26:05 +0000 |
| commit | 42c498c18a94eed79896c50871889af52fa0822e (patch) | |
| tree | a7e1776997955259906c4dbd94eb19a597dfa21d /drivers/fpga/xilinx-spi.c | |
| parent | gfs2: Fix mmap + page fault deadlocks for buffered I/O (diff) | |
| download | kernel-42c498c18a94eed79896c50871889af52fa0822e.tar.gz kernel-42c498c18a94eed79896c50871889af52fa0822e.zip | |
iomap: Fix iomap_dio_rw return value for user copies
When a user copy fails in one of the helpers of iomap_dio_rw, fail with
-EFAULT instead of returning 0. This matches what iomap_dio_bio_actor
returns when it gets an -EFAULT from bio_iov_iter_get_pages. With these
changes, iomap_dio_actor now consistently fails with -EFAULT when a user
page cannot be faulted in.
Signed-off-by: Andreas Gruenbacher <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions
