aboutsummaryrefslogtreecommitdiff
path: root/kernel/bpf/arraymap.c
diff options
context:
space:
mode:
authorGUO Zihua <guozihua@huawei.com>2022-11-11 18:13:17 +0800
committerMimi Zohar <zohar@linux.ibm.com>2022-11-16 11:47:47 -0500
commit39419ef7af0916cc3620ecf1ed42d29659109bf3 (patch)
treea8860ea73819ff37094484b419c843ff0d53f65a /kernel/bpf/arraymap.c
parent8c1d6a050a0f16e0a9d32eaf53b965c77279c6f8 (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