drm/atomic: put state on error path
Subsystems (2)
PATCH 1/1 drm/atomic: put state on error path
Put the state before returning error code.
Fixes 44596b8c4750 ("drm/atomic: Unify conflicting encoder handling.")
Signed-off-by Pan Bian <[email protected]>
--- drivers/gpu/drm/drm_atomic_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_atomic_helper.c +1 -1
@@ -3021,7 +3021,7 @@ int drm_atomic_helper_set_config(struct drm_mode_set *set, ret =handle_conflicting_encoders (state, true);if (ret) -return ret; + goto fail; ret =drm_atomic_commit (state);
Signature · 7 lines
2.17.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 5 lines · Pan Bian
Put the state before returning error code.
Fixes 44596b8c4750 ("drm/atomic: Unify conflicting encoder handling.")Signed-off-by Pan Bian <[email protected]>
Nice catch, patch merged to drm-misc-fixes with cc: stable. -Daniel
Quoted 21 lines
--- drivers/gpu/drm/drm_atomic_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/drm_atomic_helper.c +1
-1@@ -3021,7 +3021,7 @@ int drm_atomic_helper_set_config(struct drm_mode_set *set, ret =handle_conflicting_encoders (state, true);if (ret) -return ret; + goto fail; ret =drm_atomic_commit (state);Signature · 1 line
2.17.1
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel