]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Fix the check for the command size
authorJordan Crouse <jcrouse@codeaurora.org>
Mon, 8 May 2017 20:34:58 +0000 (14:34 -0600)
committerRob Clark <robdclark@gmail.com>
Sat, 27 May 2017 17:48:29 +0000 (13:48 -0400)
commit4e6433e17d5fa84871643ea7355c041668991c4c
tree596d2f4822f66c3ae72b3f6922fdc7ffcdc621ab
parent000b94303d8f38262e8c55e1fccbe63a9c5be5f5
drm/msm: Fix the check for the command size

The overrun check for the size of submitted commands is off by one.
It should allow the offset plus the size to be equal to the
size of the memory object when the command stream is very tightly
constructed.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/msm_gem_submit.c