diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2022-09-16 01:01:10 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2022-11-25 19:01:20 +0100 |
commit | 355d2c2798e9dc39f6714fa7ef8902c0d4c5350b (patch) | |
tree | bc8cc58f4617f7099da15bab4e05cf2208e04647 /drivers | |
parent | [fsi] WRITE is "data source", not destination... (diff) | |
download | linux-355d2c2798e9dc39f6714fa7ef8902c0d4c5350b.tar.xz linux-355d2c2798e9dc39f6714fa7ef8902c0d4c5350b.zip |
[infiniband] READ is "data destination", not source...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/ulp/rtrs/rtrs-clt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/rtrs/rtrs-clt.c b/drivers/infiniband/ulp/rtrs/rtrs-clt.c index 8546b8816524..88282b288abd 100644 --- a/drivers/infiniband/ulp/rtrs/rtrs-clt.c +++ b/drivers/infiniband/ulp/rtrs/rtrs-clt.c @@ -966,7 +966,7 @@ static void rtrs_clt_init_req(struct rtrs_clt_io_req *req, refcount_set(&req->ref, 1); req->mp_policy = clt_path->clt->mp_policy; - iov_iter_kvec(&iter, READ, vec, 1, usr_len); + iov_iter_kvec(&iter, WRITE, vec, 1, usr_len); len = _copy_from_iter(req->iu->buf, usr_len, &iter); WARN_ON(len != usr_len); |