]> git.baikalelectronics.ru Git - kernel.git/commit
drm/syncobj: add missing error return code in drm_syncobj_transfer_to_timeline()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 13 Jun 2022 06:34:54 +0000 (14:34 +0800)
committerChristian König <christian.koenig@amd.com>
Mon, 13 Jun 2022 06:54:16 +0000 (08:54 +0200)
commitcdea71578627acacc34468621739dc0ba832ebf7
tree3ffe1803217afb879f3829440da79938a557bf7f
parent3da9a1a49fc0125b142860930c63ec1fd4c68e4d
drm/syncobj: add missing error return code in drm_syncobj_transfer_to_timeline()

If dma_fence_unwrap_merge() fails, it should return error code
in drm_syncobj_transfer_to_timeline()

Fixes: ceb5702b0f8c ("drm: use dma_fence_unwrap_merge() in drm_syncobj")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220613063454.2609364-1-yangyingliang@huawei.com
drivers/gpu/drm/drm_syncobj.c