diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2016-09-03 20:45:20 +0200 |
---|---|---|
committer | Chris Metcalf <cmetcalf@mellanox.com> | 2016-12-16 15:32:29 -0500 |
commit | 8e36f722f73f2fc1766af1af0b2f56f2299ba687 (patch) | |
tree | 49743a0e562793d3e424d70f98df748dbea3089e /arch/tile | |
parent | 8797fe75f164d4b2f183e776003612ece565c76e (diff) | |
download | talos-op-linux-8e36f722f73f2fc1766af1af0b2f56f2299ba687.tar.gz talos-op-linux-8e36f722f73f2fc1766af1af0b2f56f2299ba687.zip |
tile-module: Rename jump labels in module_alloc()
Adjust jump labels according to the current Linux coding style convention.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com>
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/kernel/module.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/tile/kernel/module.c b/arch/tile/kernel/module.c index dce4120f5263..09233fbe7801 100644 --- a/arch/tile/kernel/module.c +++ b/arch/tile/kernel/module.c @@ -49,23 +49,22 @@ void *module_alloc(unsigned long size) for (; i < npages; ++i) { pages[i] = alloc_page(GFP_KERNEL | __GFP_HIGHMEM); if (!pages[i]) - goto error; + goto free_pages; } area = __get_vm_area(size, VM_ALLOC, MEM_MODULE_START, MEM_MODULE_END); if (!area) - goto error; + goto free_pages; area->nr_pages = npages; area->pages = pages; if (map_vm_area(area, prot_rwx, pages)) { vunmap(area->addr); - goto error; + goto free_pages; } return area->addr; - -error: + free_pages: while (--i >= 0) __free_page(pages[i]); kfree(pages); |