gpu: host1x: Correct host1x_job_pin() error handling
authorDmitry Osipenko <digetx@gmail.com>
Wed, 14 Jun 2017 23:18:33 +0000 (02:18 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 15 Jun 2017 12:21:46 +0000 (14:21 +0200)
commite5855aa3e681bc417165604212c061e1c4b7cbda
tree8cabb11f1870154f10d93031a37d5cf743e88a9f
parent3833d16f1677e19098eb8cc0f0a54f6e209406f4
gpu: host1x: Correct host1x_job_pin() error handling

In case of relocations / waitchecks patching failure the jobs pins stay
referenced till DRM file get closed, wasting memory. Add the missed
unpinning.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Reviewed-by: Erik Faye-Lund <kusmabite@gmail.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/host1x/job.c