aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-mgr-test.c
diff options
context:
space:
mode:
authorCaleb Sander Mateos <[email protected]>2025-06-03 18:47:51 +0000
committerJens Axboe <[email protected]>2025-06-03 23:24:59 +0000
commit43a67dd812c5d3de163c0b6971046b4a4b633d3f (patch)
treeba040629a4d76b3af8222fbe6029442358d912b4 /drivers/fpga/tests/fpga-mgr-test.c
parentblock: drop direction param from bio_integrity_copy_user() (diff)
downloadkernel-43a67dd812c5d3de163c0b6971046b4a4b633d3f.tar.gz
kernel-43a67dd812c5d3de163c0b6971046b4a4b633d3f.zip
block: flip iter directions in blk_rq_integrity_map_user()
blk_rq_integrity_map_user() creates the ubuf iter with ITER_DEST for write-direction operations and ITER_SOURCE for read-direction ones. This is backwards; writes use the user buffer as a source for metadata and reads use it as a destination. Switch to the rq_data_dir() helper, which maps writes to ITER_SOURCE (WRITE) and reads to ITER_DEST(READ). Signed-off-by: Caleb Sander Mateos <[email protected]> Fixes: fe8f4ca7107e ("block: modify bio_integrity_map_user to accept iov_iter as argument") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions