drm/rockchip: only call drm_fb_helper_hotplug_event if fb_helper present
authorHeiko Stübner <heiko@sntech.de>
Tue, 2 Jun 2015 14:41:45 +0000 (16:41 +0200)
committerMark Yao <mark.yao@rock-chips.com>
Mon, 13 Jul 2015 05:50:52 +0000 (13:50 +0800)
commit765c35bbd267e93eabe15a94534688ddaa0b9dc7
tree25e7ac3cfe80ac95a26b9682062e3e8ae0453d54
parent85a359f2538882ec2a02f2331ad56a2cae3bb014
drm/rockchip: only call drm_fb_helper_hotplug_event if fb_helper present

Add a check for the presence of fb_helper to rockchip_drm_output_poll_changed()
to only call drm_fb_helper_hotplug_event if there is actually a fb_helper
available. Without this check I see NULL pointer dereferences when the
hdmi hotplug irq fires before the fb_helper got initialized.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
drivers/gpu/drm/rockchip/rockchip_drm_fb.c