]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Fri, 25 Apr 2014 08:03:07 +0000 (10:03 +0200)
commit1cc25e37213c5adca7a442a4fa6d09d9651928cc
tree239461ff5642576383630f92867317f15b5d804f
parent9a61722afc0ac48b8fcc602e6928bd4162676dc1
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