drm: fix oops in drm_atomic_set_crtc_for_connector
authorSimon Ser <contact@emersion.fr>
Sun, 15 Nov 2020 15:39:07 +0000 (15:39 +0000)
committerSimon Ser <contact@emersion.fr>
Mon, 16 Nov 2020 08:56:55 +0000 (09:56 +0100)
commit0003b687ee6d55b889f037530582493f353f0567
tree786cc8b147cdd30f709e6fc64b02eae8fb78bce7
parent7ac76dab93a78fee7bf0a1b49c319ee5febc0396
drm: fix oops in drm_atomic_set_crtc_for_connector

crtc can be NULL. connector, extracted from conn_state, can't.

Fixes: e3aae683e861 ("drm: convert drm_atomic_uapi.c to new debug helpers")
Signed-off-by: Simon Ser <contact@emersion.fr>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/7xhyNYrWtzUIt3HNrWfi9iScW0k475RZiKNfF5TbPs@cp4-web-031.plabs.ch
drivers/gpu/drm/drm_atomic_uapi.c