diff options
| author | Xℹ Ruoyao <[email protected]> | 2021-03-30 15:33:34 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-04-01 01:53:38 +0000 |
| commit | e3512fb67093fabdf27af303066627b921ee9bd8 (patch) | |
| tree | 2aca66059fe370eaab15213dbecfcdf237ef788e /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | drm/amdgpu: Set a suitable dev_info.gart_page_size (diff) | |
| download | kernel-e3512fb67093fabdf27af303066627b921ee9bd8.tar.gz kernel-e3512fb67093fabdf27af303066627b921ee9bd8.zip | |
drm/amdgpu: check alignment on CPU page for bo map
The page table of AMDGPU requires an alignment to CPU page so we should
check ioctl parameters for it. Return -EINVAL if some parameter is
unaligned to CPU page, instead of corrupt the page table sliently.
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Xi Ruoyao <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
