diff options
author | 2025-01-31 14:13:15 +0000 | |
---|---|---|
committer | 2025-02-17 22:40:00 -0800 | |
commit | f4b78260fc678ccd7169f32dc9f3bfa3b93931c7 (patch) | |
tree | 601ba7bdcc9ec61d63bd7f10ac4672275f180379 /scripts/generate_rust_analyzer.py | |
parent | procfs: fix a locking bug in a vmcore_add_device_dump() error path (diff) | |
download | wireguard-linux-f4b78260fc678ccd7169f32dc9f3bfa3b93931c7.tar.xz wireguard-linux-f4b78260fc678ccd7169f32dc9f3bfa3b93931c7.zip |
lib/iov_iter: fix import_iovec_ubuf iovec management
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.
Link: https://lkml.kernel.org/r/378ae26923ffc20fd5e41b4360d673bf47b1775b.1738332461.git.asml.silence@gmail.com
Fixes: 3b2deb0e46da ("iov_iter: import single vector iovecs as ITER_UBUF")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions