drm/i915: Fix regression in 95ca9d
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 20 Feb 2009 17:52:20 +0000 (17:52 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 23 Feb 2009 00:06:30 +0000 (10:06 +1000)
commitbab2d1f6531657e37dc84f26184f3f64e1e73ecd
treebc55f7e0f38d71dce6714b91d0dab972ab0b81e0
parentf21289b355cee8738d80c2ae5cbd272c3f7b5689
drm/i915: Fix regression in 95ca9d

The object is dereferenced before the NULL check. Oops.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=20235

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_gem.c