]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: add missing failure path to destroy suballoc
authorLucas Stach <l.stach@pengutronix.de>
Thu, 27 Jun 2019 14:42:00 +0000 (16:42 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 28 Jun 2019 08:59:44 +0000 (10:59 +0200)
commit5f7f06db25142a12a25f19a7a6bd8b72a5f49297
tree0cebe35e510d34634f0fd8d53c3efb170778cf3e
parentb48e0d7fe5b5eb1732dfe0b8057a6c721c42f2d4
drm/etnaviv: add missing failure path to destroy suballoc

When something goes wrong in the GPU init after the cmdbuf suballocator
has been constructed, we fail to destroy it properly. This causes havok
later when the GPU is unbound due to a module unload or similar.

Fixes: 775bdcda2734 (drm/etnaviv: add cmdbuf suballocator)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c