drm/msm: Move fence put to where failure occurs
authorRobert Foss <robert.foss@collabora.com>
Mon, 5 Nov 2018 10:13:12 +0000 (11:13 +0100)
committerSean Paul <seanpaul@chromium.org>
Mon, 3 Dec 2018 13:46:13 +0000 (08:46 -0500)
commit2189463dba3eac10d7264a40ede12fc1a3c06fb1
tree4b85fef3933669cfb55d053d21a2535cff10917a
parent081679c51ef2fd7b23cf9ddb7d775b17f75de18c
drm/msm: Move fence put to where failure occurs

If dma_fence_wait fails to wait for a supplied in-fence in
msm_ioctl_gem_submit, make sure we release that in-fence.

Also remove this dma_fence_put() from the 'out' label.

Signed-off-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@vger.kernel.org
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/msm/msm_gem_submit.c