etnaviv: fix memory leak when BO allocation fails
authorLucas Stach <l.stach@pengutronix.de>
Fri, 9 Jun 2017 16:20:56 +0000 (18:20 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 29 Jun 2017 09:34:50 +0000 (11:34 +0200)
commit4fb9f97047eb1e43c47cb7cacba27ccd20383eff
treebc856cc8bc31212d126640934767d46da82f77b8
parentb2a87ce34f081671c7e4969874de91ac6953d062
etnaviv: fix memory leak when BO allocation fails

The resource struct is already allocated at this point and should be
freed properly.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_resource.c