drm/msm: Put back the vaddr in submit_reloc()
authorJordan Crouse <jcrouse@codeaurora.org>
Tue, 20 Dec 2016 15:54:30 +0000 (08:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Aug 2017 01:59:45 +0000 (18:59 -0700)
commit50e3950d77ba7d897c5509ca6192f1aaed426dd0
tree3f18c92b93184dce8a1138d1f72999b7b1e01800
parente0d5bb92c07bee2205212ad7aa6f1a85451db6ed
drm/msm: Put back the vaddr in submit_reloc()

[ Upstream commit 6490abc4bc35fa4f3bdb9c7e49096943c50e29ea ]

The error cases in submit_reloc() need to put back the virtual
address of the bo before failling. Add a single failure path
for the function.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/msm/msm_gem_submit.c