diff options
author | Marek Vasut <[email protected]> | 2021-10-16 23:04:46 +0200 |
---|---|---|
committer | Maarten Lankhorst <[email protected]> | 2021-10-21 11:08:08 +0200 |
commit | 3cfc183052c3dbf8eae57b6c1685dab00ed3db4a (patch) | |
tree | 50d09174cdb7202bc6249c3fa695de7639d8b3df /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 519d81956ee277b4419c723adfb154603c2565ba (diff) |
drm: mxsfb: Fix NULL pointer dereference crash on unload
The mxsfb->crtc.funcs may already be NULL when unloading the driver,
in which case calling mxsfb_irq_disable() via drm_irq_uninstall() from
mxsfb_unload() leads to NULL pointer dereference.
Since all we care about is masking the IRQ and mxsfb->base is still
valid, just use that to clear and mask the IRQ.
Fixes: ae1ed00932819 ("drm: mxsfb: Stop using DRM simple display pipeline helper")
Signed-off-by: Marek Vasut <[email protected]>
Cc: Daniel Abrecht <[email protected]>
Cc: Emil Velikov <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: Stefan Agner <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Maarten Lankhorst <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions