diff options
| author | Qiang Ma <maqianga@uniontech.com> | 2026-01-17 10:57:02 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-01-23 11:21:32 +0100 |
| commit | e94ec9661c5820d157d2cc4b6cf4a6ab656a7b4d (patch) | |
| tree | 3a267037c3726070359a9ea53a8171d1a0d386ef /include/net/aligned_data.h | |
| parent | a227c3c98f092595a90eda7a71f485e09446b106 (diff) | |
LoongArch: KVM: Fix kvm_device leak in kvm_eiointc_destroy()
commit 7d8553fc75aefa7ec936af0cf8443ff90b51732e upstream.
In kvm_ioctl_create_device(), kvm_device has allocated memory,
kvm_device->destroy() seems to be supposed to free its kvm_device
struct, but kvm_eiointc_destroy() is not currently doing this, that
would lead to a memory leak.
So, fix it.
Cc: stable@vger.kernel.org
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Qiang Ma <maqianga@uniontech.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions
