linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* vmalloc issuing BUG() on get_vm_area failure
@ 2000-08-23 17:38 Arnaldo Carvalho de Melo
  0 siblings, 0 replies; only message in thread
From: Arnaldo Carvalho de Melo @ 2000-08-23 17:38 UTC (permalink / raw)
  To: linux-mm

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

--- linux-2.4.0-test7-pre7/mm/vmalloc.c	Tue Aug  8 01:01:36 2000
+++ linux-2.4.0-test7-pre7.acme/mm/vmalloc.c	Wed Aug 23 14:31:08 2000
@@ -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 majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-08-23 17:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-23 17:38 vmalloc issuing BUG() on get_vm_area failure Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox