[PATCH 2/6] nvme-ioctl: use common type for user data addresses
Damien Le Moal
dlemoal at kernel.org
Mon Feb 24 14:22:49 PST 2025
On 2/25/25 03:21, Keith Busch wrote:
> From: Keith Busch <kbusch at kernel.org>
>
> The data type is represented as a u64, but the metadata type as a __user
> void *. These two fields represent the same thing, so treating them so
> differently looks a bit odd. Just pick one consistent type of
> representation.
>
> Signed-off-by: Keith Busch <kbusch at kernel.org>
Maybe mention that were needed nvme_to_user_ptr() to not lose the __user attribute ?
Otherwise, looks OK to me.
Reviewed-by: Damien Le Moal <dlemoal at kernel.org>
--
Damien Le Moal
Western Digital Research
More information about the Linux-nvme
mailing list