commit | 6c27ffabeb19ebf7dd6d4ccc29f1e57d1ef445d8 | [log] [tgz] |
---|---|---|
author | Ben Skeggs <bskeggs@redhat.com> | Sat Nov 14 13:50:44 2020 +1000 |
committer | Ben Skeggs <bskeggs@redhat.com> | Sat Nov 14 14:19:17 2020 +1000 |
tree | 67b0a4907979a5a83cd40c15f72e2ced08991808 | |
parent | 630f512280604eecae0ddc2b3f8402f7931c56fd [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>