Re: [PATCH 1/1] lib/iov_iter: fix import_iovec_ubuf iovec management

From: Jens Axboe
Date: Fri Jan 31 2025 - 09:29:20 EST


On 1/31/25 7:13 AM, Pavel Begunkov wrote:
> import_iovec() says that it should always be fine to kfree the iovec
> returned in @iovp regardless of the error code. __import_iovec_ubuf()
> never reallocates it and thus should clear the pointer even in cases
> when copy_iovec_*() fail.

Looks good to me:

Reviewed-by: Jens Axboe <axboe@xxxxxxxxx>

--
Jens Axboe