Skip to content
Commit 6c27ffab authored by Ben Skeggs's avatar Ben Skeggs
Browse files

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: default avatarThomas Zimmermann <tzimmermann@suse.de>
Fixes: 5839172f

 ("drm/nouveau: explicitly specify caching to use")
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 630f5122
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment