]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Move drm_mode_setcrtc() local re-init to failure path
authorSean Paul <seanpaul@chromium.org>
Thu, 29 Nov 2018 15:04:15 +0000 (10:04 -0500)
committerSean Paul <seanpaul@chromium.org>
Thu, 29 Nov 2018 15:48:30 +0000 (10:48 -0500)
commit42a606832f1ce6a4aa6b38ac80424e45a131ecdb
treeceb3b819137bfa2ede83b93b5e66bdb2ef7ea831
parent54e1079cd8cfaf10cf9ee8fee92aface51a7b651
drm: Move drm_mode_setcrtc() local re-init to failure path

Instead of always re-initializing the variables we need to clean up on
out, move the re-initialization into the branch that goes back to retry
label.

This is a lateral move right now, but will allow us to pull out the
modeset locking into common code. I kept this change separate to make
things easier to review.

Changes in v2:
- None

Reviewed-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20181129150423.239081-2-sean@poorly.run
drivers/gpu/drm/drm_crtc.c