aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorMiaohe Lin <[email protected]>2019-11-28 14:38:48 +0800
committerMarc Zyngier <[email protected]>2019-12-06 11:41:29 +0000
commit0bda9498dd45280e334bfe88b815ebf519602cc3 (patch)
treea37aeba177df126b8cf962535fef129621e44500 /lib/netdev-notifier-error-inject.c
parent7e0befd521b6d40af1d08fcdb29d4dbf30236624 (diff)
KVM: arm/arm64: vgic: Fix potential double free dist->spis in __kvm_vgic_destroy()
In kvm_vgic_dist_init() called from kvm_vgic_map_resources(), if dist->vgic_model is invalid, dist->spis will be freed without set dist->spis = NULL. And in vgicv2 resources clean up path, __kvm_vgic_destroy() will be called to free allocated resources. And dist->spis will be freed again in clean up chain because we forget to set dist->spis = NULL in kvm_vgic_dist_init() failed path. So double free would happen. Signed-off-by: Miaohe Lin <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Reviewed-by: Eric Auger <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions