exynos/drm: g2d: return 0 instead of ret in g2d_map_cmdlist_gem 17/34717/2 accepted/tizen/common/20150202.085553 accepted/tizen/mobile/20150202.100101 accepted/tizen/tv/20150202.095715 accepted/tizen/wearable/20150202.095817 submit/tizen/20150202.023401
authorChanho Park <chanho61.park@samsung.com>
Mon, 2 Feb 2015 01:20:16 +0000 (10:20 +0900)
committerChanho Park <chanho61.park@samsung.com>
Mon, 2 Feb 2015 01:42:10 +0000 (10:42 +0900)
This patch fixes a return value of g2d_map_cmdlist_gem. Since applied
dmabuf_sync, the return value was changed to ret when success return.
This is wrong value when everything is successful.

Change-Id: I0ddb735b8f894ec065ee90865d0a8b45bf892b8e
Reported-by: Voloshynov Sergii <s.voloshynov@samsung.com>
Signed-off-by: Voloshynov Sergii <s.voloshynov@samsung.com>
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_g2d.c

index 0232a72..738ea1f 100644 (file)
@@ -809,7 +809,7 @@ out_dmabuf_sync:
                        dmabuf_sync_fini(node->sync);
        }
 
-       return ret;
+       return 0;
 
 err:
        if (node->sync) {