Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e36f722 authored by Markus Elfring's avatar Markus Elfring Committed by Chris Metcalf
Browse files

tile-module: Rename jump labels in module_alloc()



Adjust jump labels according to the current Linux coding style convention.

Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarChris Metcalf <cmetcalf@mellanox.com>
parent 8797fe75
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -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);