drm/i915: fix NULL deref in the load detect code
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Feb 2014 15:35:54 +0000 (16:35 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 14 Feb 2014 16:23:12 +0000 (17:23 +0100)
commit4c0e552882114d1edb588242d45035246ab078a0
treebbc09c7b3feee7528564556bfc5648cddf08491a
parent8ea99c928787ba1712b7506b4c56c948c45d84b1
drm/i915: fix NULL deref in the load detect code

Looks like I've missed one of the potential NULL deref bugs in Jesse's
fbdev->fb embedded struct to pointer conversions. Fix it up.

This regression has been introduced in

commit 8bcd45534ddf68ab71aeed709dacd9cf65dc0f75
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Fri Feb 7 12:10:38 2014 -0800

    drm/i915: alloc intel_fb in the intel_fbdev struct

Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c