]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/omap: fix crash on module unload
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 24 Mar 2017 07:58:49 +0000 (09:58 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Apr 2017 09:36:40 +0000 (12:36 +0300)
commitc9af3ed7311f5fbc4b0e109daddfcc8a47267331
tree0b5a437ebd933e642e6a1a488900a3a6521f7371
parent8a54aa92850058fd60f07fa2621cab94bf53b5f0
drm/omap: fix crash on module unload

When unloading omapdrm we get a NULL pointer deref in
omap_drm_irq_uninstall(). This is caused by:

967dd48417874dd25491a4e933648f394a64f70f ("drm: remove
drm_vblank_no_hw_counter assignment from driver code")

We shut down all the crtcs at unload time before calling
omap_drm_irq_uninstall, so the code in omap_drm_irq_uninstall() is
unnecessary and can be removed.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/omapdrm/omap_irq.c