Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipc: mqueue: fix possible memory leak in init_mqueue_fs()
commit db7cfc3 ("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: dc55e35 ("ipc: Store mqueue sysctls in the ipc namespace") Signed-off-by: Hangyu Hua <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Eric W. Biederman <[email protected]>
- Loading branch information