drm/etnaviv: Fix off-by-one error in reloc checking
authorWladimir J. van der Laan <laanwj@gmail.com>
Tue, 25 Jul 2017 12:33:36 +0000 (14:33 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 8 Aug 2017 13:56:00 +0000 (15:56 +0200)
commitd6f756e09f01ea7a0efbbcef269a1e384a35d824
treebb8aa5b70f25f97725232abf2f65fd28e529511b
parent5669b9989eaa664cacbad6a85631550bccdad963
drm/etnaviv: Fix off-by-one error in reloc checking

A relocation pointing to the last four bytes of a buffer can
legitimately happen in the case of small vertex buffers.

CC: stable@vger.kernel.org #4.9+
Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c