diff options
author | GUO Zihua <guozihua@huawei.com> | 2022-11-11 18:13:17 +0800 |
---|---|---|
committer | Mimi Zohar <zohar@linux.ibm.com> | 2022-11-16 11:47:47 -0500 |
commit | 39419ef7af0916cc3620ecf1ed42d29659109bf3 (patch) | |
tree | a8860ea73819ff37094484b419c843ff0d53f65a /kernel/bpf/arraymap.c | |
parent | 8c1d6a050a0f16e0a9d32eaf53b965c77279c6f8 (diff) |
integrity: Fix memory leakage in keyring allocation error path
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>
Diffstat (limited to 'kernel/bpf/arraymap.c')
0 files changed, 0 insertions, 0 deletions