[Intel-gfx] [PATCH v14 21/26] vfio: Avoid repeated user pointer cast in vfio_device_fops_unl_ioctl()

Jason Gunthorpe jgg at nvidia.com
Fri Jul 14 14:27:38 UTC 2023


On Mon, Jul 10, 2023 at 07:59:23PM -0700, Yi Liu wrote:
> This adds a local variable to store the user pointer cast result from arg.
> It avoids the repeated casts in the code when more ioctls are added.
> 
> Signed-off-by: Yi Liu <yi.l.liu at intel.com>
> ---
>  drivers/vfio/vfio_main.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>

Jason


More information about the Intel-gfx mailing list