@@ -758,7 +758,7 @@ static int ttm_dma_pool_alloc_new_pages(struct dma_pool *pool,
cpages);
}
r = -ENOMEM;
- goto out;
+ goto free_array;
}
p = dma_p->p;
#ifdef CONFIG_HIGHMEM
@@ -777,7 +777,7 @@ static int ttm_dma_pool_alloc_new_pages(struct dma_pool *pool,
ttm_dma_handle_caching_state_failure(
pool, d_pages, caching_array,
cpages);
- goto out;
+ goto free_array;
}
cpages = 0;
}
@@ -791,7 +791,7 @@ static int ttm_dma_pool_alloc_new_pages(struct dma_pool *pool,
ttm_dma_handle_caching_state_failure(pool, d_pages,
caching_array, cpages);
}
-out:
+ free_array:
kfree(caching_array);
return r;
}