Re: [PATCH 3/3] drm/radeon: keep __user during cast

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Series is:
Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx>

On Mon, Mar 8, 2021 at 1:36 PM Christian König
<ckoenig.leichtzumerken@xxxxxxxxx> wrote:
>
> Silence static checker warning.
>
> Signed-off-by: Christian König <christian.koenig@xxxxxxx>
> ---
>  drivers/gpu/drm/radeon/radeon_ttm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c
> index 5ea647f454d3..808941e31d34 100644
> --- a/drivers/gpu/drm/radeon/radeon_ttm.c
> +++ b/drivers/gpu/drm/radeon/radeon_ttm.c
> @@ -921,7 +921,7 @@ static ssize_t radeon_ttm_vram_read(struct file *f, char __user *buf,
>                 value = RREG32(RADEON_MM_DATA);
>                 spin_unlock_irqrestore(&rdev->mmio_idx_lock, flags);
>
> -               r = put_user(value, (uint32_t *)buf);
> +               r = put_user(value, (uint32_t __user *)buf);
>                 if (r)
>                         return r;
>
> --
> 2.25.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux