drm/udl: fix error-path when damage-req fails
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 20 Jan 2014 18:52:29 +0000 (19:52 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 16 Mar 2014 11:11:01 +0000 (12:11 +0100)
We need to call dma_buf_end_cpu_access() in case a damage-request.
Unlikely, but might happen during device unplug.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
drivers/gpu/drm/udl/udl_fb.c

index dbadd49e4c4a62bdd32c83473ad3751452e4033d..377176372da893e79b7c108b15cb73f18d8adb9a 100644 (file)
@@ -421,7 +421,7 @@ static int udl_user_framebuffer_dirty(struct drm_framebuffer *fb,
                                  clips[i].x2 - clips[i].x1,
                                  clips[i].y2 - clips[i].y1);
                if (ret)
-                       goto unlock;
+                       break;
        }
 
        if (ufb->obj->base.import_attach) {