[PATCH 1/1] nvme: fix implicit bool to flags conversion

Jens Axboe axboe at kernel.dk
Tue May 20 08:21:26 PDT 2025


On 5/20/25 9:14 AM, Pavel Begunkov wrote:
> nvme_map_user_request() takes flags as the last argument, but
> nvme_uring_cmd_io() shoves a bool "vec" into it. It behaves as
> expected because bool is converted to 0/1 and NVME_IOCTL_VEC is
> defined as 1, but it's better to pass flags explicitly.

LGTM:

Reviewed-by: Jens Axboe <axboe at kernel.dk>

-- 
Jens Axboe




More information about the Linux-nvme mailing list