Commit 4583e773 authored by Geliang Tang's avatar Geliang Tang Committed by Linus Torvalds
parent 13ad59df
......@@ -2309,7 +2309,7 @@ EXPORT_SYMBOL_GPL(free_vm_area);
#ifdef CONFIG_SMP
static struct vmap_area *node_to_va(struct rb_node *n)
{
return n ? rb_entry(n, struct vmap_area, rb_node) : NULL;
return rb_entry_safe(n, struct vmap_area, rb_node);
}
/**
......
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