iov_iter: fix bad parenthesis placement for iter_type check for-5.20/io_uring-iter
authorJens Axboe <axboe@kernel.dk>
Sat, 18 Jun 2022 13:37:27 +0000 (07:37 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 21 Jul 2022 17:14:38 +0000 (11:14 -0600)
commit537c746119a583dec62a3dbdc294171c2743278e
treed1d66f887fd28c141666a6d590c9fedd937d52bd
parent5c55adbcebc8fc722d92f2812f7bc3267ac95ab1
iov_iter: fix bad parenthesis placement for iter_type check

Due to some unfortunate placement of the parenthesis for the iter_type
check in iov_iter_restore(), we can generate spurious triggers of the
type WARN_ON_ONCE() even if the iter is of the correct type.

While in there, correct the comment on what types can be used with the
save/restore helpers, and fix an extra word in the function description.

Fixes: 6696361cc3d8 ("new iov_iter flavour - ITER_UBUF")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
lib/iov_iter.c