]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/kms: Check framebuffer size against bo
authorJames Jones <jajones@nvidia.com>
Mon, 10 Feb 2020 23:15:54 +0000 (15:15 -0800)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 22 May 2020 01:11:15 +0000 (11:11 +1000)
commitf5ba5919d2d02f76fa21809a40a543a1778f7e12
treef555c4e6b1bea044aedc0e10269dd3127346ac02
parent374354291b696ac5415feea9da36f132007fae05
drm/nouveau/kms: Check framebuffer size against bo

Make sure framebuffer dimensions and tiling
parameters will not result in accesses beyond the
end of the GEM buffer they are bound to.

v3: Return EINVAL when creating FB against BO with
    unsupported tiling
v5: Resolved against nouveau_framebuffer cleanup

Signed-off-by: James Jones <jajones@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_display.c