diff options
| author | Qiang Ma <maqianga@uniontech.com> | 2026-01-17 10:57:02 +0800 |
|---|---|---|
| committer | Huacai Chen <chenhuacai@loongson.cn> | 2026-01-17 10:57:02 +0800 |
| commit | 7d8553fc75aefa7ec936af0cf8443ff90b51732e (patch) | |
| tree | 1a04cc9f576130070960da1d42ee58ee5da83941 /include/linux | |
| parent | 0bf58cb7288a4d3de6d8ecbb3a65928a9362bf21 (diff) | |
LoongArch: KVM: Fix kvm_device leak in kvm_eiointc_destroy()
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
