projects
/
platform
/
kernel
/
linux-rpi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
KVM: arm/arm64: vgic: Fix kvm_device leak in vgic_its_destroy
[platform/kernel/linux-rpi.git]
/
virt
/
kvm
/
arm
/
vgic
/
vgic-its.c
diff --git
a/virt/kvm/arm/vgic/vgic-its.c
b/virt/kvm/arm/vgic/vgic-its.c
index
621bb00
..
0dbe332
100644
(file)
--- a/
virt/kvm/arm/vgic/vgic-its.c
+++ b/
virt/kvm/arm/vgic/vgic-its.c
@@
-1750,6
+1750,7
@@
static void vgic_its_destroy(struct kvm_device *kvm_dev)
mutex_unlock(&its->its_lock);
kfree(its);
+ kfree(kvm_dev);/* alloc by kvm_ioctl_create_device, free by .destroy */
}
int vgic_its_has_attr_regs(struct kvm_device *dev,