drm/i915: Validate BDB section before reading
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 18 Apr 2014 21:04:23 +0000 (18:04 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 5 May 2014 07:08:58 +0000 (09:08 +0200)
commitd1f13fd261f4490b3b69c1da87711fd3813c2a9f
treec75ef06becb199d9aeaada1c3bd7b27c43fe64fb
parentc6df39b5ea6342323a42edfbeeca0a28c643d7ae
drm/i915: Validate BDB section before reading

Make sure that the whole BDB section is within the MMIO region prior to
accessing it contents. That we don't read outside of the secion is left
up to the individual section parsers.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Reviewed-by: Shobhit Kumar <shobhit.kumar@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_bios.c