Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264207
b: refs/heads/master
c: 47ea91b
h: refs/heads/master
i:
  264205: 8f9586b
  264203: 80ca64d
  264199: 61a6772
  264191: b06abea
v: v3
  • Loading branch information
Ram Pai authored and Linus Torvalds committed Sep 30, 2011
1 parent 7de5e7c commit 4dd2158
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: 92bb062fe36132a04c6dc8b3c51c945730b05224
refs/heads/master: 47ea91b4052d9e94b9dca5d7a3d947fbebd07ba9
7 changes: 6 additions & 1 deletion trunk/kernel/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,9 @@ static int __find_resource(struct resource *root, struct resource *old,
else
tmp.end = root->end;

if (tmp.end < tmp.start)
goto next;

resource_clip(&tmp, constraint->min, constraint->max);
arch_remove_reservations(&tmp);

Expand All @@ -436,8 +439,10 @@ static int __find_resource(struct resource *root, struct resource *old,
return 0;
}
}
if (!this)

next: if (!this || this->end == root->end)
break;

if (this != old)
tmp.start = this->end + 1;
this = this->sibling;
Expand Down

0 comments on commit 4dd2158

Please sign in to comment.