OSDN Git Service

io_uring: kill extra iovec=NULL in import_iovec()
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 20 Aug 2020 08:34:39 +0000 (11:34 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Aug 2020 11:36:19 +0000 (05:36 -0600)
commit867a23eab52847d41a0a6eae41a64d76de7782a8
tree48d204ce4cf3ac11de1ca386d11105cb0a3e9355
parentf261c16861b82951bd2125706660ce4602930563
io_uring: kill extra iovec=NULL in import_iovec()

If io_import_iovec() returns an error, return iovec is undefined and
must not be used, so don't set it to NULL when failing.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c