diff options
| author | Xℹ Ruoyao <xry111@mengyan1223.wang> | 2021-03-30 18:33:34 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2021-04-09 23:50:00 +0300 |
| commit | 9a89a721b41b23c6da8f8a6dd0e382966a850dcf (patch) | |
| tree | 12ac97808cc47f388d90992c067e5eeb4c216fa3 /lib/mpi/mpiutil.c | |
| parent | f4d3da72a76a9ce5f57bba64788931686a9dc333 (diff) | |
| download | linux-9a89a721b41b23c6da8f8a6dd0e382966a850dcf.tar.xz | |
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 <christian.koenig@amd.com>
Signed-off-by: Xi Ruoyao <xry111@mengyan1223.wang>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
