Fixup
- fix a possible null pointer dereference issue in exynos_drm_crtc_atomic_disable(), which was reported by the automatic static analysis tool. And below is a relevant link, https://sites.google.com/view/basscheck/home Cleanup - drop the use of of_match_ptr which is redundant. -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEENRKOoF7NhdPGpscnVzg0iQxDErgFAmTTJb4ACgkQVzg0iQxD ErjFwRAAtamMqg683L2H8WoSHkINGydHQnUAvXMPvT09sD9k7NTKgzLGtmr5CWFV uMjrCZczwFrcbSUvnS8emFK/otNu69ozsS/hMEG9yY4QIOj29pjSP4E2PaGSTOyS zSCdTBunJXEtOPN4GjgqUAyCXYfus+dZkHmTVGfJQgVIPHSmJUJdXulm0gAX14/8 uc3QU9hVN+f67pmyIeWZQ76JG6qTBH7jkYEldX9kAj+FIk+G6VbQWl8IkaglpxRK CghaWBfdnDCvxJq6ApzV4Eb7cGyC1CrmXObaUbGfOkAvOHrM3pKvV1YvpHhRILOd J0o4e8MAKw9gOXcVvehIRWfTq28SfnLs/JchP6Im8QVkl8kR80PRSvS0WASbgr2l FZn5FYyocDaTlQm0/JSlal0CdXLy7M37naITxBZTR/+6haLCjSfe/4Q9F9Rb1Kiw aXlOnShcPFMY5sIM9wgvcJvIBmJU4fkAywlHnR6VjeVV245VvnOIzJemzHzdm7ce L6ZzrZ6KM2AN4FkkZVd3QCjKdqKte257/EligSocsBf2B4gkeRj8dx9lgwmSUjjg hARM7qcn7n3xpx81bk31KMYXX2MtyxH0V6CUPzO/lGVPqH7aF4c4suAHZFvTl8qa HsAtken8EBGN6Tym+wHg5x9Ov6TBrBPJ/qV3+il1PcEdP0ev5fE= =ZP22 -----END PGP SIGNATURE----- Merge tag 'exynos-drm-next-for-v6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-next Fixup - fix a possible null pointer dereference issue in exynos_drm_crtc_atomic_disable(), which was reported by the automatic static analysis tool. And below is a relevant link, https://sites.google.com/view/basscheck/home Cleanup - drop the use of of_match_ptr which is redundant. Signed-off-by: Dave Airlie <airlied@redhat.com> From: Inki Dae <inki.dae@samsung.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230809060216.374042-1-inki.dae@samsung.com
This commit is contained in:
commit
3defb4fe3e
@ -39,13 +39,12 @@ static void exynos_drm_crtc_atomic_disable(struct drm_crtc *crtc,
|
||||
if (exynos_crtc->ops->atomic_disable)
|
||||
exynos_crtc->ops->atomic_disable(exynos_crtc);
|
||||
|
||||
spin_lock_irq(&crtc->dev->event_lock);
|
||||
if (crtc->state->event && !crtc->state->active) {
|
||||
spin_lock_irq(&crtc->dev->event_lock);
|
||||
drm_crtc_send_vblank_event(crtc, crtc->state->event);
|
||||
spin_unlock_irq(&crtc->dev->event_lock);
|
||||
|
||||
crtc->state->event = NULL;
|
||||
}
|
||||
spin_unlock_irq(&crtc->dev->event_lock);
|
||||
}
|
||||
|
||||
static int exynos_crtc_atomic_check(struct drm_crtc *crtc,
|
||||
|
@ -1426,6 +1426,6 @@ struct platform_driver gsc_driver = {
|
||||
.name = "exynos-drm-gsc",
|
||||
.owner = THIS_MODULE,
|
||||
.pm = &gsc_pm_ops,
|
||||
.of_match_table = of_match_ptr(exynos_drm_gsc_of_match),
|
||||
.of_match_table = exynos_drm_gsc_of_match,
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user