diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2017-07-12 12:09:22 +0200 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2017-08-09 07:34:23 +0900 |
commit | 1899bd57570a3e610db574b57d1e7e66378aa908 (patch) | |
tree | 39c0e986685fb3ebb6f533dd8f55db16d0db9bfa /kernel/kcmp.c | |
parent | 5669b9989eaa664cacbad6a85631550bccdad963 (diff) |
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>
Diffstat (limited to 'kernel/kcmp.c')
0 files changed, 0 insertions, 0 deletions