summaryrefslogtreecommitdiff
path: root/drivers/fpga/tests/fpga-mgr-test.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2025-04-29 05:29:38 +0300
committerJens Axboe <axboe@kernel.dk>2025-04-29 15:01:36 +0300
commit6240f43b29f285a40eebeb789756673af7a7d67c (patch)
treed298aa6082978ef31cfd8e774270dbd5703b47dd /drivers/fpga/tests/fpga-mgr-test.c
parent69edf98be844375807f299397c516fb1e962b3cc (diff)
downloadlinux-6240f43b29f285a40eebeb789756673af7a7d67c.tar.xz
ublk: enhance check for register/unregister io buffer command
The simple check of UBLK_IO_FLAG_OWNED_BY_SRV can avoid incorrect register/unregister io buffer easily, so check it before calling starting to register/un-register io buffer. Also only allow io buffer register/unregister uring_cmd in case of UBLK_F_SUPPORT_ZERO_COPY. Also mark argument 'ublk_queue *' of ublk_register_io_buf as const. Reviewed-by: Caleb Sander Mateos <csander@purestorage.com> Fixes: 1f6540e2aabb ("ublk: zc register/unregister bvec") Signed-off-by: Ming Lei <ming.lei@redhat.com> Link: https://lore.kernel.org/r/20250429022941.1718671-4-ming.lei@redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions