diff options
-rw-r--r-- | drivers/gpu/drm/drm_atomic_helper.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index 4253f57227e3..ab4032167094 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c | |||
@@ -3421,15 +3421,6 @@ EXPORT_SYMBOL(drm_atomic_helper_crtc_duplicate_state); | |||
3421 | void __drm_atomic_helper_crtc_destroy_state(struct drm_crtc_state *state) | 3421 | void __drm_atomic_helper_crtc_destroy_state(struct drm_crtc_state *state) |
3422 | { | 3422 | { |
3423 | if (state->commit) { | 3423 | if (state->commit) { |
3424 | /* | ||
3425 | * In the event that a non-blocking commit returns | ||
3426 | * -ERESTARTSYS before the commit_tail work is queued, we will | ||
3427 | * have an extra reference to the commit object. Release it, if | ||
3428 | * the event has not been consumed by the worker. | ||
3429 | */ | ||
3430 | if (state->event) | ||
3431 | drm_crtc_commit_put(state->commit); | ||
3432 | |||
3433 | kfree(state->commit->event); | 3424 | kfree(state->commit->event); |
3434 | state->commit->event = NULL; | 3425 | state->commit->event = NULL; |
3435 | drm_crtc_commit_put(state->commit); | 3426 | drm_crtc_commit_put(state->commit); |