]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix command parser table validator
authorHanno Böck <hanno@hboeck.de>
Wed, 29 Jul 2015 08:31:04 +0000 (10:31 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 29 Jul 2015 08:31:04 +0000 (10:31 +0200)
commit203b3092752358be308ad5234573af47b0d4ba65
tree1658f106b0904bce05189a4cb9f101a9e9bc83e5
parent3f40f4ab0432238f9c6c91e2d636bffbeb3cf791
drm/i915: Fix command parser table validator

As we may like to use a bisection search on the tables in future, we
need them to be ordered. For convenience we expect the compiled tables
to be order and check on initialisation. However, the validator used the
wrong iterators failed to spot the misordered MI tables and instead
walked off into the unknown (as spotted by kasan).

Signed-off-by: Hanno Boeck <hanno@hboeck.de>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Again hand-assemble patch ...]
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
drivers/gpu/drm/i915/i915_cmd_parser.c