Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 320754
b: refs/heads/master
c: 92ca922
h: refs/heads/master
v: v3
  • Loading branch information
Hong zhi guo authored and Linus Torvalds committed Aug 1, 2012
1 parent 3dde3a5 commit 953489a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c2cddf991974a00aa7b40a21e829bc034b8199b6
refs/heads/master: 92ca922f0a19145f2dcc99d84fe656fa55b52c2e
8 changes: 4 additions & 4 deletions trunk/mm/vmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,11 @@ static struct vmap_area *alloc_vmap_area(unsigned long size,
if (addr + size - 1 < addr)
goto overflow;

n = rb_next(&first->rb_node);
if (n)
first = rb_entry(n, struct vmap_area, rb_node);
else
if (list_is_last(&first->list, &vmap_area_list))
goto found;

first = list_entry(first->list.next,
struct vmap_area, list);
}

found:
Expand Down

0 comments on commit 953489a

Please sign in to comment.