drm/crtc: fix uninitialized variable use even harder
[ Upstream commit b6802b61a9d0e99dcfa6fff7c50db7c48a9623d3 ]
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: 6e455f5dcdd1 ("drm/crtc: fix uninitialized variable use")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> # sc7180, sdm845
Link: https://patchwork.freedesktop.org/patch/msgid/20240212215534.190682-1-robdclark@gmail.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
49da44d24c
commit
07effb3c96
1 changed files with 1 additions and 0 deletions
|
|
@ -727,6 +727,7 @@ out:
|
||||||
connector_set = NULL;
|
connector_set = NULL;
|
||||||
fb = NULL;
|
fb = NULL;
|
||||||
mode = NULL;
|
mode = NULL;
|
||||||
|
num_connectors = 0;
|
||||||
|
|
||||||
DRM_MODESET_LOCK_ALL_END(ctx, ret);
|
DRM_MODESET_LOCK_ALL_END(ctx, ret);
|
||||||
mutex_unlock(&crtc->dev->mode_config.mutex);
|
mutex_unlock(&crtc->dev->mode_config.mutex);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue