Skip to content

Commit f134d11

Browse files
robclarkSasha Levin
authored and
Sasha Levin
committed
drm/crtc: fix uninitialized variable use even harder
[ Upstream commit b6802b6 ] DRM_MODESET_LOCK_ALL_BEGIN() has a hidden trap-door (aka retry loop), which means we can't rely too much on variable initializers. Fixes: 6e455f5 ("drm/crtc: fix uninitialized variable use") Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Tested-by: Dmitry Baryshkov <[email protected]> # sc7180, sdm845 Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent b6c7335 commit f134d11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/drm_crtc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data,
768768
connector_set = NULL;
769769
fb = NULL;
770770
mode = NULL;
771+
num_connectors = 0;
771772

772773
if (ret == -EDEADLK) {
773774
ret = drm_modeset_backoff(&ctx);

0 commit comments

Comments
 (0)