drm/nouveau: Fix error handling in nv50_disp_atomic_commit
authorMaarten Lankhorst <[email protected]>
Tue, 11 Jul 2017 14:33:03 +0000 (16:33 +0200)
committerDaniel Vetter <[email protected]>
Wed, 26 Jul 2017 11:22:40 +0000 (13:22 +0200)
commit813a7e1604eaad1c2792d37d402e1b48b8d0eb3f
tree7b5d4d1f32f75b980119e5010e94eea19fd46eaf
parente1923ab3d01ef600dbde84ee29822980e816ee79
drm/nouveau: Fix error handling in nv50_disp_atomic_commit

Make it more clear that post commit return ret is really return 0,

and add a missing drm_atomic_helper_cleanup_planes when
drm_atomic_helper_wait_for_fences fails.

Fixes: 839ca903f12e ("drm/nouveau/kms/nv50: transition to atomic interfaces internally")
Cc: Ben Skeggs <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: <[email protected]> # v4.10+
Signed-off-by: Maarten Lankhorst <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Sean Paul <[email protected]>
[mlankhorst: Use if (ret) to remove the goto in success case.]
Reviewed-by: Daniel Vetter <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/nouveau/nv50_display.c