projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
thermal/drivers/sprd: Fix return value of sprd_thm_probe()
[linux-2.6-microblaze.git]
/
kernel
/
ucount.c
diff --git
a/kernel/ucount.c
b/kernel/ucount.c
index
29c60eb
..
11b1596
100644
(file)
--- a/
kernel/ucount.c
+++ b/
kernel/ucount.c
@@
-82,6
+82,8
@@
bool setup_userns_sysctls(struct user_namespace *ns)
{
#ifdef CONFIG_SYSCTL
struct ctl_table *tbl;
+
+ BUILD_BUG_ON(ARRAY_SIZE(user_table) != UCOUNT_COUNTS + 1);
setup_sysctl_set(&ns->set, &set_root, set_is_seen);
tbl = kmemdup(user_table, sizeof(user_table), GFP_KERNEL);
if (tbl) {