diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-12-22 09:36:26 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-12-27 14:16:59 +0100 |
commit | c820186d5b3b213c5a627c45e5db386bb739af25 (patch) | |
tree | 7c843d5933077c6c0f208bfa3dc498c0d198bd2e /include/drm/drm_mm.h | |
parent | drm: Fix kerneldoc for drm_mm_scan_remove_block() (diff) | |
download | linux-c820186d5b3b213c5a627c45e5db386bb739af25.tar.xz linux-c820186d5b3b213c5a627c45e5db386bb739af25.zip |
drm: Detect overflow in drm_mm_reserve_node()
Protect ourselves from a caller passing in node.start + node.size that
will overflow and trick us into reserving that node.
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-24-chris@chris-wilson.co.uk
Diffstat (limited to 'include/drm/drm_mm.h')
0 files changed, 0 insertions, 0 deletions