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

Alex Deucher alexdeucher at gmail.com
Mon Mar 8 18:45:50 UTC 2021


Series is:
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

On Mon, Mar 8, 2021 at 1:36 PM Christian König
<ckoenig.leichtzumerken at gmail.com> wrote:
>
> Silence static checker warning.
>
> Signed-off-by: Christian König <christian.koenig at amd.com>
> ---
>  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 at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list