summaryrefslogtreecommitdiff
path: root/ipc/mqueue.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-10-10 02:10:22 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2022-10-10 02:10:22 +0300
commit86fb9c53d82f1dadf960553a3bd351de6173911f (patch)
treef23200db02565f9488936dd0671a3c90976f9c97 /ipc/mqueue.c
parentc71370bde7dbd3aefae0c2e8dd643d68fb2c51c8 (diff)
parentc579d60f0d0cd87552f64fdebe68b5d941d20309 (diff)
downloadlinux-86fb9c53d82f1dadf960553a3bd351de6173911f.tar.xz
Merge tag 'retire_mq_sysctls-for-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
Pull mqueue fix from Eric Biederman: "A fix for an unlikely but possible memory leak" * tag 'retire_mq_sysctls-for-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace: ipc: mqueue: fix possible memory leak in init_mqueue_fs()
Diffstat (limited to 'ipc/mqueue.c')
-rw-r--r--ipc/mqueue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index f98de32aeea1..9cf314b3f079 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -1746,6 +1746,7 @@ out_filesystem:
unregister_filesystem(&mqueue_fs_type);
out_sysctl:
kmem_cache_destroy(mqueue_inode_cachep);
+ retire_mq_sysctls(&init_ipc_ns);
return error;
}