OSDN Git Service

v3d: Fix leak in resource setup error path
authorErnestas Kulik <ernestas.kulik@gmail.com>
Thu, 30 Aug 2018 16:02:46 +0000 (19:02 +0300)
committerEric Anholt <eric@anholt.net>
Wed, 30 Jan 2019 00:14:13 +0000 (16:14 -0800)
commit90458bef544ac46a912f06e73f71c3cb20fdaaf6
tree2ab995e7d17e00039617dc266e01f6520cfcf8c9
parentf6e49d5ad0fde19a074644491475470d684dd721
v3d: Fix leak in resource setup error path

Reported by Coverity: in the case of unsupported modifier request, the
code does not jump to the “fail” label to destroy the acquired resource.

CID: 1435704
Signed-off-by: Ernestas Kulik <ernestas.kulik@gmail.com>
Fixes: 45bb8f295710 ("broadcom: Add V3D 3.3 gallium driver called "vc5", for BCM7268.")
src/gallium/drivers/v3d/v3d_resource.c