diff options
author | Ming Lei <ming.lei@redhat.com> | 2025-07-13 22:34:03 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-07-15 08:04:16 -0600 |
commit | 3446583f81fc3b98dddaac15b37d9c4ff2b569af (patch) | |
tree | 31848d895cddee56bf6d69ba540e35c3ee35e6a9 /scripts/lib/kdoc/kdoc_output.py | |
parent | 21bb9facb1e78c50cf8bd5a51571fb8cbec3fb9d (diff) |
ublk: add helper ublk_check_fetch_buf()
Add a helper ublk_check_fetch_buf() to validate UBLK_IO_FETCH_REQ's addr.
This doesn't require access to the ublk_io, so it can be done before taking
the ublk_device mutex.
This way also fixes one missing return value of -EINVAL in case of early
failure from ublk_fetch().
Fixes: b69b8edfb27d ("ublk: properly serialize all FETCH_REQs")
Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250713143415.2857561-9-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions