gpu: host1x: Fix potential out-of-bounds access
authorThierry Reding <treding@nvidia.com>
Thu, 9 Mar 2017 19:04:57 +0000 (20:04 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 4 Apr 2017 17:18:47 +0000 (19:18 +0200)
commit8cadb01d2c2f520a890d1bc78b45471f21b9b76d
tree749035104a97b75397e2225f1bb560fcb51e925d
parent05d2f3ea0dbf0785ab6875a1494cf2f886fa50cd
gpu: host1x: Fix potential out-of-bounds access

The check for valid syncpoint IDs is off by one. While at it, rewrite
the check to make it more easily understandable.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/syncpt.c