cpu/hotplug: Mute hotplug lockdep during init
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / kernel / uid16.c
index 5c2dc5b2bf4fe8ecd05e2423d1a820e25b16d1ec..ef1da2a5f9bd00689e4f78adffb04c867d8395cb 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  *     Wrapper functions for 16bit uid back compatibility. All nicely tied
  *     together in the faint hope we can take the out in five years time.
@@ -191,6 +192,7 @@ SYSCALL_DEFINE2(setgroups16, int, gidsetsize, old_gid_t __user *, grouplist)
                return retval;
        }
 
+       groups_sort(group_info);
        retval = set_current_groups(group_info);
        put_group_info(group_info);