From: Andrew Morton Cc: Alexey Dobriyan Signed-off-by: Andrew Morton --- kernel/user.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN kernel/user.c~userc-ifdef-mq_bytes-fix kernel/user.c --- a/kernel/user.c~userc-ifdef-mq_bytes-fix +++ a/kernel/user.c @@ -174,8 +174,9 @@ struct user_struct * alloc_uid(struct us atomic_set(&new->inotify_watches, 0); atomic_set(&new->inotify_devs, 0); #endif - +#ifdef CONFIG_POSIX_MQUEUE new->mq_bytes = 0; +#endif new->locked_shm = 0; if (alloc_uid_keyring(new, current) < 0) { _