--- zzzz-none-000/linux-3.10.107/drivers/gpu/drm/radeon/radeon_mem.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/gpu/drm/radeon/radeon_mem.c 2021-02-04 17:41:59.000000000 +0000 @@ -243,7 +243,7 @@ if (!block) return -ENOMEM; - if (DRM_COPY_TO_USER(alloc->region_offset, &block->start, + if (copy_to_user(alloc->region_offset, &block->start, sizeof(int))) { DRM_ERROR("copy_to_user\n"); return -EFAULT;