From bb7644d0b9dc8c5191a88402d195cf667f6a8b0d Mon Sep 17 00:00:00 2001 From: Eric Dumazet Date: Sat, 25 Mar 2006 03:08:00 -0800 Subject: [PATCH] --- yaml --- r: 23587 b: refs/heads/master c: 231bed205879236357171e50bd8965e70797ecdc h: refs/heads/master i: 23585: b35330c968970b292326b5837391c3898b0640b2 23583: 6d671707134fcbe92bcf4f767766925f053d735d v: v3 --- [refs] | 2 +- trunk/kernel/sys.c | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 8c286586dec2..5f4c7a903806 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 76c67de460b3d00b7ab8a96bb18f07ca47d65fba +refs/heads/master: 231bed205879236357171e50bd8965e70797ecdc diff --git a/trunk/kernel/sys.c b/trunk/kernel/sys.c index 421009cedb51..119fb0d9e24e 100644 --- a/trunk/kernel/sys.c +++ b/trunk/kernel/sys.c @@ -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) { @@ -1434,7 +1433,6 @@ asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist) } } out: - put_group_info(current->group_info); return i; } @@ -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; } @@ -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; }