drm/i915: Do not dereference NULL crtc or fb until after checking
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 2 Aug 2013 19:39:49 +0000 (20:39 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 4 Aug 2013 19:13:43 +0000 (21:13 +0200)
commitcd234b0bfd5ab012e42274b24aae420fa1823d58
tree5085484db540480f1492358e3c40a9bccdfe38c7
parent257a7ffcfaf68718c963db6e9978d1f4f647986b
drm/i915: Do not dereference NULL crtc or fb until after checking

Fixes regression from
commit 4906557eb37b7fef84fad4304acef6dedf919880
Author: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Date:   Thu Jul 11 18:45:05 2013 -0300

    drm/i915: Hook PSR functionality

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67526
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c