Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210462
b: refs/heads/master
c: 1c24de6
h: refs/heads/master
v: v3
  • Loading branch information
Jerome Marchand authored and Linus Torvalds committed Sep 10, 2010
1 parent 668f574 commit 5231fe6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 94131e174fedd9f3f9bb148cee4be12f2d46d68e
refs/heads/master: 1c24de60e50fb19b94d94225458da17c720f0729
5 changes: 2 additions & 3 deletions trunk/kernel/groups.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,9 @@ int groups_search(const struct group_info *group_info, gid_t grp)
right = group_info->ngroups;
while (left < right) {
unsigned int mid = (left+right)/2;
int cmp = grp - GROUP_AT(group_info, mid);
if (cmp > 0)
if (grp > GROUP_AT(group_info, mid))
left = mid + 1;
else if (cmp < 0)
else if (grp < GROUP_AT(group_info, mid))
right = mid;
else
return 1;
Expand Down

0 comments on commit 5231fe6

Please sign in to comment.