diff options
author | Tobias Jakobi <tjakobi@math.uni-bielefeld.de> | 2015-08-18 01:51:24 +0300 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2015-09-02 17:10:28 +0300 |
commit | 179239a7ae805f7695167c62a97eac3efe52d7af (patch) | |
tree | 5228ad4284d25b58c1bd41a75ce41ab46a24570c /net/sctp | |
parent | 879a37d00f1882b1e56a66e626af4194d592d257 (diff) | |
download | linux-179239a7ae805f7695167c62a97eac3efe52d7af.tar.xz |
drm/exynos: fix size check in g2d_check_buf_desc_is_valid()
The size check was incomplete. It only computed the
size of area of the drawing rectangle and checked if
the size still fit inside the buffer.
The correct check is to compute the position of the
last byte that the G2D engine is going to access and
then check if that position is still contained in the
buffer. In particular we need the stride information
to determine this.
Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'net/sctp')
0 files changed, 0 insertions, 0 deletions