staging: drm/imx: fix pageflip events during device close
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 10 Oct 2013 14:18:44 +0000 (16:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2013 22:30:33 +0000 (15:30 -0700)
commit6ee4d7fe1b5f8c9c32410ddf1f1aa84bdeaed6b9
treef35931a52e45fd00179793293ef98720f7719ef4
parentb8fbb34181558ad231e63277589592fd686323a2
staging: drm/imx: fix pageflip events during device close

During a device close the drm core frees all pending events in
drm_events_release(). If at that time a pageflip is pending the
interrupt handler will try to complete the now unitialized
event resulting in a NULL pointer exception. Seen on imx-drm
when userspace is killed during a page flip.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/imx-drm/imx-drm-core.c
drivers/staging/imx-drm/ipuv3-crtc.c