diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sys.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index 421009cedb51..119fb0d9e24e 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -1421,7 +1421,6 @@ asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist) | |||
1421 | return -EINVAL; | 1421 | return -EINVAL; |
1422 | 1422 | ||
1423 | /* no need to grab task_lock here; it cannot change */ | 1423 | /* no need to grab task_lock here; it cannot change */ |
1424 | get_group_info(current->group_info); | ||
1425 | i = current->group_info->ngroups; | 1424 | i = current->group_info->ngroups; |
1426 | if (gidsetsize) { | 1425 | if (gidsetsize) { |
1427 | if (i > gidsetsize) { | 1426 | if (i > gidsetsize) { |
@@ -1434,7 +1433,6 @@ asmlinkage long sys_getgroups(int gidsetsize, gid_t __user *grouplist) | |||
1434 | } | 1433 | } |
1435 | } | 1434 | } |
1436 | out: | 1435 | out: |
1437 | put_group_info(current->group_info); | ||
1438 | return i; | 1436 | return i; |
1439 | } | 1437 | } |
1440 | 1438 | ||
@@ -1475,9 +1473,7 @@ int in_group_p(gid_t grp) | |||
1475 | { | 1473 | { |
1476 | int retval = 1; | 1474 | int retval = 1; |
1477 | if (grp != current->fsgid) { | 1475 | if (grp != current->fsgid) { |
1478 | get_group_info(current->group_info); | ||
1479 | retval = groups_search(current->group_info, grp); | 1476 | retval = groups_search(current->group_info, grp); |
1480 | put_group_info(current->group_info); | ||
1481 | } | 1477 | } |
1482 | return retval; | 1478 | return retval; |
1483 | } | 1479 | } |
@@ -1488,9 +1484,7 @@ int in_egroup_p(gid_t grp) | |||
1488 | { | 1484 | { |
1489 | int retval = 1; | 1485 | int retval = 1; |
1490 | if (grp != current->egid) { | 1486 | if (grp != current->egid) { |
1491 | get_group_info(current->group_info); | ||
1492 | retval = groups_search(current->group_info, grp); | 1487 | retval = groups_search(current->group_info, grp); |
1493 | put_group_info(current->group_info); | ||
1494 | } | 1488 | } |
1495 | return retval; | 1489 | return retval; |
1496 | } | 1490 | } |