From: Damien Lespiau Date: Sat, 30 Aug 2014 15:51:00 +0000 (+0100) Subject: drm/i915: Don't overrun the intel_wa_regs array X-Git-Tag: fixes-against-v3.18-rc2~73^2~32^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55820e1e840def3802fc366607f2b25e31036ab1;p=pandora-kernel.git drm/i915: Don't overrun the intel_wa_regs array When entering intel_ring_emit_wa() with num_wa_regs equal to I915_MAX_WA_REGS, we end up indexing the intel_wa_regs array beyond its allocation. Fix the check then. Signed-off-by: Damien Lespiau Reviewed-by: Arun Siluvery Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed