Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182010
b: refs/heads/master
c: f309cb3
h: refs/heads/master
v: v3
  • Loading branch information
Dominik Brodowski committed Feb 17, 2010
1 parent f85a1cc commit 8c8fb91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: d801c1409ef7d45339cbe8ac9de28ade6ed4699a
refs/heads/master: f309cb3e4fe79a68cb2fdedfb8a8a950a2cfe490
6 changes: 4 additions & 2 deletions trunk/drivers/pcmcia/rsrc_nonstatic.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,10 @@ static int add_interval(struct resource_map *map, u_long base, u_long num)
struct resource_map *p, *q;

for (p = map; ; p = p->next) {
if ((p != map) && (p->base+p->num-1 >= base))
return -1;
if ((p != map) && (p->base+p->num >= base)) {
p->num = max(num + base - p->base, p->num);
return 0;
}
if ((p->next == map) || (p->next->base > base+num-1))
break;
}
Expand Down

0 comments on commit 8c8fb91

Please sign in to comment.