@@ -527,7 +527,7 @@ static int ttm_alloc_new_pages(struct list_head *pages, gfp_t gfp_flags,
caching_array, cpages);
}
r = -ENOMEM;
- goto out;
+ goto free_array;
}
#ifdef CONFIG_HIGHMEM
@@ -546,7 +546,7 @@ static int ttm_alloc_new_pages(struct list_head *pages, gfp_t gfp_flags,
ttm_handle_caching_state_failure(pages,
ttm_flags, cstate,
caching_array, cpages);
- goto out;
+ goto free_array;
}
cpages = 0;
}
@@ -562,7 +562,7 @@ static int ttm_alloc_new_pages(struct list_head *pages, gfp_t gfp_flags,
ttm_flags, cstate,
caching_array, cpages);
}
-out:
+ free_array:
kfree(caching_array);
return r;