diff options
author | 2020-11-23 23:20:27 +0000 | |
---|---|---|
committer | 2020-11-24 07:54:30 -0700 | |
commit | 9c3a205c5ffa36e96903c2e37eb5f41c0f03c43e (patch) | |
tree | 8610ee1aad55211ccf5b8edb09f0f643ce304a5a /drivers/usb/cdns3/cdns3-imx.c | |
parent | io_uring: fix shift-out-of-bounds when round up cq size (diff) | |
download | linux-dev-9c3a205c5ffa36e96903c2e37eb5f41c0f03c43e.tar.xz linux-dev-9c3a205c5ffa36e96903c2e37eb5f41c0f03c43e.zip |
io_uring: fix ITER_BVEC check
iov_iter::type is a bitmask that also keeps direction etc., so it
shouldn't be directly compared against ITER_*. Use proper helper.
Fixes: ff6165b2d7f6 ("io_uring: retain iov_iter state over io_read/io_write calls")
Reported-by: David Howells <dhowells@redhat.com>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Cc: <stable@vger.kernel.org> # 5.9
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions