Commit 1fa4da04 authored by Daniel Vetter's avatar Daniel Vetter

drm: Fixup failure paths in drm_atomic_helper_set_config

I've screwed this up when removing the legacy backoff hack.

Fixes: 38b6441e ("drm/atomic-helper: Remove the backoff hack from set_config")
Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: David Airlie <airlied@linux.ie>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170329174136.10330-1-daniel.vetter@ffwll.ch
parent b33b0270
...@@ -2293,10 +2293,11 @@ int drm_atomic_helper_set_config(struct drm_mode_set *set, ...@@ -2293,10 +2293,11 @@ int drm_atomic_helper_set_config(struct drm_mode_set *set,
state->acquire_ctx = ctx; state->acquire_ctx = ctx;
ret = __drm_atomic_helper_set_config(set, state); ret = __drm_atomic_helper_set_config(set, state);
if (ret != 0) if (ret != 0)
return ret; goto fail;
ret = drm_atomic_commit(state); ret = drm_atomic_commit(state);
fail:
drm_atomic_state_put(state); drm_atomic_state_put(state);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment