diff options
author | Hangyu Hua <hbh25y@gmail.com> | 2022-07-15 14:23:01 +0800 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2022-07-19 17:17:35 -0500 |
commit | c579d60f0d0cd87552f64fdebe68b5d941d20309 (patch) | |
tree | e556f9560543d096fb001cfef6e34671707c9610 /COPYING | |
parent | f2906aa863381afb0015a9eb7fefad885d4e5a56 (diff) |
ipc: mqueue: fix possible memory leak in init_mqueue_fs()
commit db7cfc380900 ("ipc: Free mq_sysctls if ipc namespace creation
failed")
Here's a similar memory leak to the one fixed by the patch above.
retire_mq_sysctls need to be called when init_mqueue_fs fails after
setup_mq_sysctls.
Fixes: dc55e35f9e81 ("ipc: Store mqueue sysctls in the ipc namespace")
Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Link: https://lkml.kernel.org/r/20220715062301.19311-1-hbh25y@gmail.com
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions