Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147
b: refs/heads/master
c: b52402c
h: refs/heads/master
i:
  145: 67cfb22
  143: 436152c
v: v3
  • Loading branch information
Lennert Buytenhek authored and Linus Torvalds committed Apr 16, 2005
1 parent 1804b94 commit a9bf763
Show file tree
Hide file tree
Showing 2 changed files with 2 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: fe4b334f8bcdf5359771666d5002b293212e4d3f
refs/heads/master: b52402c783d8c16b11f146a244bb21086a94bf84
2 changes: 1 addition & 1 deletion trunk/kernel/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ static int find_resource(struct resource *root, struct resource *new,
new->start = (new->start + align - 1) & ~(align - 1);
if (alignf)
alignf(alignf_data, new, size, align);
if (new->start < new->end && new->end - new->start + 1 >= size) {
if (new->start < new->end && new->end - new->start >= size - 1) {
new->end = new->start + size - 1;
return 0;
}
Expand Down

0 comments on commit a9bf763

Please sign in to comment.