diff options
author | Xiu Jianfeng <xiujianfeng@huawei.com> | 2022-11-23 18:58:58 +0300 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2022-12-05 14:59:50 +0300 |
commit | ca84ce153d887b1dc8b118029976cc9faf2a9b40 (patch) | |
tree | 4e19bcc7dc9f57680df9c1187b45b8352a3ed042 /drivers/ras | |
parent | 69143f60868b3939ddc89289b29db593b647295e (diff) | |
download | linux-ca84ce153d887b1dc8b118029976cc9faf2a9b40.tar.xz |
x86/xen: Fix memory leak in xen_init_lock_cpu()
In xen_init_lock_cpu(), the @name has allocated new string by kasprintf(),
if bind_ipi_to_irqhandler() fails, it should be freed, otherwise may lead
to a memory leak issue, fix it.
Fixes: 2d9e1e2f58b5 ("xen: implement Xen-specific spinlocks")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20221123155858.11382-3-xiujianfeng@huawei.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'drivers/ras')
0 files changed, 0 insertions, 0 deletions