Change-Id: I540255281d74ade6a96c0e98ed50f4ffc6c5eeeb
return surf;
get_bo_fail:
+ for (j = 0; j < i; j++) {
+ if (surf->bos[j])
+ tbm_bo_unref(surf->bos[j]);
+ }
get_memory_types_fail:
get_bos_fail:
query_plane_data_fail:
- if (hal_surface) {
- hal_tbm_surface_free(hal_surface);
- } else {
- for (j = 0; j < i; j++) {
- if (surf->bos[j])
- tbm_bo_unref(surf->bos[j]);
- }
- }
+ hal_tbm_surface_free(hal_surface);
import_surface_fail:
num_planes_fail:
bpp_fail: