cpu/hotplug: Mute hotplug lockdep during init
[GitHub/moto-9609/android_kernel_motorola_exynos9610.git] / kernel / uid16.c
index 71645ae9303a522c04c0eb307eb2dfa8c2fa0f4f..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.
@@ -12,6 +13,7 @@
 #include <linux/init.h>
 #include <linux/highuid.h>
 #include <linux/security.h>
+#include <linux/cred.h>
 #include <linux/syscalls.h>
 
 #include <linux/uaccess.h>
@@ -190,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);