Commit 806bf1f9 authored by Paolo \'Blaisorblade\' Giarrusso's avatar Paolo \'Blaisorblade\' Giarrusso Committed by Linus Torvalds

[PATCH] uml: fix wrong type for rb_entry call

With the type-safe rb_entry (based on container_of, I sent it) I discovered
this type error, so I've fixed it.
Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 11f6410f
......@@ -36,7 +36,7 @@ static struct rb_node **find_rb(void *virt)
struct phys_desc *d;
while(*n != NULL){
d = rb_entry(n, struct phys_desc, rb);
d = rb_entry(*n, struct phys_desc, rb);
if(d->virt == virt)
return(n);
......@@ -56,7 +56,7 @@ static struct phys_desc *find_phys_mapping(void *virt)
if(*n == NULL)
return(NULL);
return(rb_entry(n, struct phys_desc, rb));
return(rb_entry(*n, struct phys_desc, rb));
}
static void insert_phys_mapping(struct phys_desc *desc)
......
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