aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2020-11-12 12:29:43 +1000
committerBen Skeggs <bskeggs@redhat.com>2020-11-14 14:35:57 +1000
commitbe323a4cef022aa9685b08d5a94ddc841ccf617a (patch)
treef01ee58a0f81a16f8eb00eae7a0a61bcce8ba8ff /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parent512bce50a41c528fa15c4c014293e7bebf018658 (diff)
drm/nouveau/ttm: avoid using nouveau_drm.ttm.type_vram prior to nv50
Pre-NV50 chipsets don't currently use the MMU subsystem that later chipsets use, and type_vram is negative here, leading to an OOB memory access. This was previously guarded by a chipset check, restore that. Reported-by: Thomas Zimmermann <tzimmermann@suse.de> Fixes: 5839172f0980 ("drm/nouveau: explicitly specify caching to use") Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions