summaryrefslogtreecommitdiffstats
path: root/drivers/dma/ipu
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-12-22 08:36:28 +0000
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-12-27 14:17:00 +0100
commit6259a56ba0e1c3a15954e22ea531e810944518cb (patch)
tree7665de31f399a65d876f1ea7042d9fa0cfb689c7 /drivers/dma/ipu
parentac9bb7b7d33f6be9e333b24786a774145cc8c59e (diff)
downloadop-kernel-dev-6259a56ba0e1c3a15954e22ea531e810944518cb.zip
op-kernel-dev-6259a56ba0e1c3a15954e22ea531e810944518cb.tar.gz
drm: Add asserts to catch overflow in drm_mm_init() and drm_mm_init_scan()
A simple assert to ensure that we don't overflow start + size when initialising the drm_mm, or its scanner. In future, we may want to switch to tracking the value of ranges (rather than size) so that we can cover the full u64, for example like resource tracking. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/20161222083641.2691-26-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/dma/ipu')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud