summaryrefslogtreecommitdiff
path: root/security/keys
diff options
context:
space:
mode:
authorGUO Zihua <guozihua@huawei.com>2022-11-11 18:13:17 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-12-31 13:32:11 +0100
commitc591c48842f08d30ec6b8416757831985ed9a315 (patch)
treef01fbffbcaeb8d9b5b1ab5ae15c99e288ce4828b /security/keys
parentaccc7993a780c5cd4e45051634bf66400df10f36 (diff)
integrity: Fix memory leakage in keyring allocation error path
[ Upstream commit 39419ef7af0916cc3620ecf1ed42d29659109bf3 ] Key restriction is allocated in integrity_init_keyring(). However, if keyring allocation failed, it is not freed, causing memory leaks. Fixes: 2b6aa412ff23 ("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>
Diffstat (limited to 'security/keys')
0 files changed, 0 insertions, 0 deletions