Skip to contentSkip to conversation

vmalloc issuing BUG() on get_vm_area failure

PATCH Arnaldo Carvalho de Melo 1 participant 1 message Aug 23, 2000

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

Using our random failing kmalloc debug patch I've noticed that vmalloc
calls BUG() when get_vm_area fails (one of the possible reasons is for kmalloc to fail on get_vm_area, which is possible), should it do it? or is it a debugging leftover? if it is a leftover bellow is a patch to get rid of it.

- Arnaldo

mm/vmalloc.c +1 -3
@@ -222,10 +222,8 @@
 		return NULL;
 	}
 	area = get_vm_area(size, VM_ALLOC);
-	if (!area) {
-		BUG();
+	if (!area)
 		return NULL;
-	}
 	addr = area->addr;
 	if (vmalloc_area_pages(VMALLOC_VMADDR(addr), size, gfp_mask, prot)) {
 		vfree(addr);

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/