diff options
author | Xiu Jianfeng <xiujianfeng@huawei.com> | 2022-11-23 18:58:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-18 11:26:11 +0300 |
commit | 07764d00c869a3390bd4f80412cc8b0e669e6c58 (patch) | |
tree | 5dd7e3e976ea6b1ebb4f31d31c3c55c11a41b63c /drivers/iio/accel | |
parent | 1f713b07d557fd32a14d394c1d0a5e3c1045ec5d (diff) | |
download | linux-07764d00c869a3390bd4f80412cc8b0e669e6c58.tar.xz |
x86/xen: Fix memory leak in xen_init_lock_cpu()
[ Upstream commit ca84ce153d887b1dc8b118029976cc9faf2a9b40 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/iio/accel')
0 files changed, 0 insertions, 0 deletions