From: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
To: linux-mm@kvack.org
Subject: vmalloc issuing BUG() on get_vm_area failure
Date: Wed, 23 Aug 2000 14:38:41 -0300 [thread overview]
Message-ID: <20000823143841.A18492@conectiva.com.br> (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
--- 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/
reply other threads:[~2000-08-23 17:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20000823143841.A18492@conectiva.com.br \
--to=acme@conectiva.com.br \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox