drm: Clean up planes in atomic commit helper failure path
Subsystems (2)
PATCH 1/1 drm: Clean up planes in atomic commit helper failure path
If waiting for fences fails for blocking commits, planes must be cleaned up before returning.
Fixes f6ce410a59a4 ("drm/fence: allow fence waiting to be interrupted by userspace")
Signed-off-by Laurent Pinchart <[email protected]>
--- drivers/gpu/drm/drm_atomic_helper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/drm_atomic_helper.c +3 -1
@@ -1259,8 +1259,10 @@ int drm_atomic_helper_commit(struct drm_device *dev,if (!nonblock) { ret =drm_atomic_helper_wait_for_fences (dev, state, true); -if (ret) +if (ret) { +drm_atomic_helper_cleanup_planes (dev, state);return ret; + } }/*
Signature · 8 lines
Regards, Laurent Pinchart _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 6 lines · Laurent Pinchart
If waiting for fences fails for blocking commits, planes must be cleaned up before returning.
Fixes f6ce410a59a4 ("drm/fence: allow fence waiting to be interrupted by userspace")Signed-off-by Laurent Pinchart <[email protected]>
Nice catch. Applied to drm-misc-fixes, will send a pull to Dave soonish. -Daniel
Quoted 29 lines
--- drivers/gpu/drm/drm_atomic_helper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/drm_atomic_helper.c +3
-1@@ -1259,8 +1259,10 @@ int drm_atomic_helper_commit(struct drm_device *dev,if (!nonblock) { ret =drm_atomic_helper_wait_for_fences (dev, state, true); -if (ret) +if (ret) { +drm_atomic_helper_cleanup_planes (dev, state);return ret; + } }/* Signature · 8 lines
Regards, Laurent Pinchart _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
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