]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Skip allocating shadow batch for 0-length batches
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Mar 2015 11:02:10 +0000 (11:02 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 27 Mar 2015 14:28:41 +0000 (15:28 +0100)
commit569240c382efa9b1038016d69fceb5d1ea697327
treefbac8e4b446b06e67d78cf06c9eb89dd2d068469
parent9f8fe9ccf1d98d01a5549770b029424524f82843
drm/i915: Skip allocating shadow batch for 0-length batches

Since

commit 765e7fa6109845073edc4600494b6e030ef6306a
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Jan 14 11:20:57 2015 +0000

    drm/i915: Trim the command parser allocations

we may then try to allocate a zero-sized object and attempt to extract
its pages. Understandably this fails.

Testcase: igt/gem_exec_nop #ivb,byt,hsw
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c