drm/i915: Prevent integer overflow when validating the execbuffer
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 21 Nov 2010 09:23:48 +0000 (09:23 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 21 Nov 2010 09:30:58 +0000 (09:30 +0000)
commitd1d788302e8c76e5138dfa61f4a5eee4f72a748f
tree4e8504aeaafefb11d7c973836da3323f72f02795
parent16c59ef33b389217c29122235e475557bc1412a1
drm/i915: Prevent integer overflow when validating the execbuffer

Commit 2549d6c2 removed the vmalloc used for temporary storage of the
relocation lists used during execbuffer. However, our use of vmalloc was
being protected by an integer overflow check which we do want to
preserve!

Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c