]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: Fix comparison operator for buffer size
authorMikko Perttunen <mperttunen@nvidia.com>
Wed, 20 Jun 2018 13:03:58 +0000 (16:03 +0300)
committerThierry Reding <treding@nvidia.com>
Mon, 9 Jul 2018 08:33:45 +0000 (10:33 +0200)
commitb922aa07e1b76cddba473e783022fd6f493225c3
tree207c3c849a78c3f20cb879794cc774477588f91c
parent9cde63ffb5b6f7796ad191b609f0eedea63a3040
drm/tegra: Fix comparison operator for buffer size

Here we are checking for the buffer length, not an offset for writing
to, so using > is correct. The current code incorrectly rejects a
command buffer ending at the memory buffer's end.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c