drm/i915: dereferencing an error pointer
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 17 Jul 2012 06:44:49 +0000 (09:44 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 25 Jul 2012 08:39:58 +0000 (10:39 +0200)
commitbe636387f81376ff26963987531c89a63faf8a33
treee73886593a4739238109def962d01ca8f8bae38f
parentb259b3120607f642daabdaadc99430a306899ffe
drm/i915: dereferencing an error pointer

We need to check that "ctx" is a valid pointer before dereferencing it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_context.c