mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-18 11:10:25 +01:00
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:45bb8f2957("broadcom: Add V3D 3.3 gallium driver called "vc5", for BCM7268.") (cherry picked from commit90458bef54)
This commit is contained in:
parent
7fdb08375f
commit
c824f8031c
1 changed files with 1 additions and 1 deletions
|
|
@ -780,7 +780,7 @@ v3d_resource_create_with_modifiers(struct pipe_screen *pscreen,
|
|||
rsc->tiled = false;
|
||||
} else {
|
||||
fprintf(stderr, "Unsupported modifier requested\n");
|
||||
return NULL;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
rsc->internal_format = prsc->format;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue