From: Chris Wilson Date: Fri, 27 Mar 2015 11:02:10 +0000 (+0000) Subject: drm/i915: Skip allocating shadow batch for 0-length batches X-Git-Tag: omap-for-v4.1/fixes-rc1~82^2~20^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=743e78c1d726d875b98ff9689cc77c4d3d5d9ae2;p=pandora-kernel.git drm/i915: Skip allocating shadow batch for 0-length batches Since commit 17cabf571e50677d980e9ab2a43c5f11213003ae Author: Chris Wilson 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 Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed