]> 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)
commitc65164f57227386e3380742616a56dbc7264a316
treef555c4e6b1bea044aedc0e10269dd3127346ac02
parent3fd3fc2bbdfaeaed5a71173a9237bda6532ecb37
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