Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23587
b: refs/heads/master
c: 231bed2
h: refs/heads/master
i:
  23585: b35330c
  23583: 6d67170
v: v3
  • Loading branch information
Eric Dumazet authored and Linus Torvalds committed Mar 25, 2006
1 parent fd87484 commit bb7644d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 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: 76c67de460b3d00b7ab8a96bb18f07ca47d65fba
refs/heads/master: 231bed205879236357171e50bd8965e70797ecdc
6 changes: 0 additions & 6 deletions trunk/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,6 @@ asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist)
return -EINVAL;

/* no need to grab task_lock here; it cannot change */
get_group_info(current->group_info);
i = current->group_info->ngroups;
if (gidsetsize) {
if (i > gidsetsize) {
Expand All @@ -1434,7 +1433,6 @@ asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist)
}
}
out:
put_group_info(current->group_info);
return i;
}

Expand Down Expand Up @@ -1475,9 +1473,7 @@ int in_group_p(gid_t grp)
{
int retval = 1;
if (grp != current->fsgid) {
get_group_info(current->group_info);
retval = groups_search(current->group_info, grp);
put_group_info(current->group_info);
}
return retval;
}
Expand All @@ -1488,9 +1484,7 @@ int in_egroup_p(gid_t grp)
{
int retval = 1;
if (grp != current->egid) {
get_group_info(current->group_info);
retval = groups_search(current->group_info, grp);
put_group_info(current->group_info);
}
return retval;
}
Expand Down

0 comments on commit bb7644d

Please sign in to comment.