Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrity: Fix memory leakage in keyring allocation error path
[ Upstream commit 39419ef ] Key restriction is allocated in integrity_init_keyring(). However, if keyring allocation failed, it is not freed, causing memory leaks. Fixes: 2b6aa41 ("KEYS: Use structure to capture key restriction function and data") Signed-off-by: GUO Zihua <guozihua@huawei.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information