diff options
| author | Ben Skeggs <[email protected]> | 2020-11-12 02:29:43 +0000 |
|---|---|---|
| committer | Ben Skeggs <[email protected]> | 2020-11-14 04:35:57 +0000 |
| commit | be323a4cef022aa9685b08d5a94ddc841ccf617a (patch) | |
| tree | f01ee58a0f81a16f8eb00eae7a0a61bcce8ba8ff /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | Merge v5.10-rc3 into drm-next (diff) | |
| download | kernel-be323a4cef022aa9685b08d5a94ddc841ccf617a.tar.gz kernel-be323a4cef022aa9685b08d5a94ddc841ccf617a.zip | |
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 <[email protected]>
Fixes: 5839172f0980 ("drm/nouveau: explicitly specify caching to use")
Signed-off-by: Ben Skeggs <[email protected]>
Reviewed-by: Michael J. Ruhl <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
