From: Philipp Zabel Date: Wed, 20 Feb 2013 02:57:01 +0000 (+0800) Subject: staging: imx/drm: request irq only after adding the crtc X-Git-Tag: v3.9-rc3~19^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47b1be5c0f4ed4991f3d956dbd7ba69cb5bc521f;p=pandora-kernel.git staging: imx/drm: request irq only after adding the crtc If the bootloader already enabled the display, the interrupt handler will be called as soon as it is registered. If the CRTC is not already added at this time, the call to imx_drm_handle_vblank will result in a NULL pointer dereference. The patch fixes a kernel panic [1], which has been on linux-next since Jan 8 [2]. [1] http://thread.gmane.org/gmane.linux.ports.arm.kernel/218858 [2] http://thread.gmane.org/gmane.linux.ports.arm.kernel/208192 Signed-off-by: Philipp Zabel Tested-by: Shawn Guo Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed