drm/i915: Reject fence stride=0 on gen4+
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 9 Apr 2013 17:09:13 +0000 (20:09 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 18 Apr 2013 07:43:19 +0000 (09:43 +0200)
commitfe48d8de34eeaefb2c71dab68ea7c236f06e5877
tree942de3dfb68e6301581ed0d0ae66e7ec3ed4056a
parenta6f429a5a2f6ae0e1e8df2493884f9a881486d81
drm/i915: Reject fence stride=0 on gen4+

Our checks for an invalid fence stride forgot to guard against
zero stride on gen4+. Fix it.

v2: Avoid duplicated code (danvet)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_tiling.c