drm/etnaviv: don't put fence in case of submit failure
authorLucas Stach <l.stach@pengutronix.de>
Fri, 28 Apr 2017 15:30:52 +0000 (17:30 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 5 May 2017 15:12:34 +0000 (17:12 +0200)
commit657314b7a5d16961e7e0ecdae4a59d28123e74c0
treec8ff25f27b1bef69b60ac34d3304088631936a79
parent8b03d1ed2c43a2ba5ef3381322ee4515b97381bf
drm/etnaviv: don't put fence in case of submit failure

If we bail out of the submit before actually adding the cmdstream
to the kernel ring there is no valid fence to put. Make sure to skip
the fence_put in that case.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c