]> git.baikalelectronics.ru Git - kernel.git/commitdiff
READ is "data destination", not source...
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 15 Sep 2022 23:01:10 +0000 (19:01 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:03 +0000 (11:28 +0100)
[ Upstream commit 355d2c2798e9dc39f6714fa7ef8902c0d4c5350b ]

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Stable-dep-of: 6dd88fd59da8 ("vhost-scsi: unbreak any layout for response")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/ulp/rtrs/rtrs-clt.c

index 8546b8816524cba880626287d1dd7568bf683167..88282b288abd93e9e79302a952b92e0bb2991ace 100644 (file)
@@ -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);