]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: forbid creating framebuffers from too small GEM buffers
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 12 Jul 2017 10:09:22 +0000 (12:09 +0200)
committerInki Dae <inki.dae@samsung.com>
Tue, 8 Aug 2017 22:34:23 +0000 (07:34 +0900)
commitf650930a590d2a4066583d9e586c3847d7456471
tree39c0e986685fb3ebb6f533dd8f55db16d0db9bfa
parent2bdcb0663999d115e4970f6bca202fbd891d7dce
drm/exynos: forbid creating framebuffers from too small GEM buffers

Add a check if the framebuffer described by the provided drm_mode_fb_cmd2
structure fits into provided GEM buffers. Without this check it is
possible to create a framebuffer object from a small buffer and set it to
the hardware, what results in displaying system memory outside the
allocated GEM buffer.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fb.c