drm: Clean up planes in atomic commit helper failure path
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 2 Jan 2017 23:14:27 +0000 (01:14 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 4 Jan 2017 10:08:13 +0000 (11:08 +0100)
commitaebe55c2d4b998741c0847ace1b4af47d73c763b
tree247be137e8262c931d0c505deea4cea997ba6542
parent0c744ea4f77d72b3dcebb7a8f2684633ec79be88
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.

Cc: stable@vger.kernel.org
Fixes: f6ce410a59a4 ("drm/fence: allow fence waiting to be interrupted by userspace")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170102231427.7192-1-laurent.pinchart@ideasonboard.com
drivers/gpu/drm/drm_atomic_helper.c