Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipc: fix memory leak in init_mqueue_fs()
When setup_mq_sysctls() failed in init_mqueue_fs(), mqueue_inode_cachep is not released. In order to fix this issue, the release path is reordered. Link: https://lkml.kernel.org/r/[email protected] Fixes: dc55e35 ("ipc: Store mqueue sysctls in the ipc namespace") Signed-off-by: Zhengchao Shao <[email protected]> Cc: Alexey Gladkov <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Jingyu Wang <[email protected]> Cc: Muchun Song <[email protected]> Cc: Roman Gushchin <[email protected]> Cc: Waiman Long <[email protected]> Cc: Wei Yongjun <[email protected]> Cc: YueHaibing <[email protected]> Cc: Yu Zhe <[email protected]> Cc: Manfred Spraul <[email protected]> Cc: Davidlohr Bueso <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
- Loading branch information