Commit 4c8573e2 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Linus Torvalds

Use WARN() in mm/vmalloc.c

Use WARN() instead of a printk+WARN_ON() pair; this way the message becomes
part of the warning section for better reporting/collection.
Signed-off-by: default avatarArjan van de Ven <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent b8c512f6
......@@ -381,16 +381,14 @@ static void __vunmap(const void *addr, int deallocate_pages)
if ((PAGE_SIZE-1) & (unsigned long)addr) {
printk(KERN_ERR "Trying to vfree() bad address (%p)\n", addr);
WARN(1, KERN_ERR "Trying to vfree() bad address (%p)\n", addr);
area = remove_vm_area(addr);
if (unlikely(!area)) {
printk(KERN_ERR "Trying to vfree() nonexistent vm area (%p)\n",
WARN(1, KERN_ERR "Trying to vfree() nonexistent vm area (%p)\n",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment