Skip to content
Snippets Groups Projects
Commit 8cb1070e authored by Nanley Chery's avatar Nanley Chery Committed by Dylan Baker
Browse files

iris: Don't leak the resource for unsupported modifier


Make sure the res struct is free'd before returning.

Fixes: 2dce0e94 ("iris: Initial commit of a new 'iris' driver for Intel Gen8+ GPUs.")
Reviewed-by: Sagar Ghuge's avatarSagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Kenneth Graunke's avatarKenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit f2fc5dec)
parent 88ca3cf1
No related branches found
No related tags found
Loading
......@@ -717,7 +717,7 @@ iris_resource_create_with_modifiers(struct pipe_screen *pscreen,
} else {
if (modifiers_count > 0) {
fprintf(stderr, "Unsupported modifier, resource creation failed.\n");
return NULL;
goto fail;
}
/* No modifiers - we can select our own tiling. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment