Skip to content

Commit

Permalink
tile-module: Rename jump labels in module_alloc()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
elfring authored and cmetcalf-tilera committed Dec 16, 2016
1 parent 8797fe7 commit 8e36f72
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions arch/tile/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8e36f72

Please sign in to comment.