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)
commit5265f0338bc0feec6c0d544dfe005dec1a93cb93
tree207c3c849a78c3f20cb879794cc774477588f91c
parentec58923215dbbeef59ee82923ee94d745f73db58
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