summaryrefslogtreecommitdiff
path: root/fs/gfs2
diff options
context:
space:
mode:
authorRustam Kovhaev <rkovhaev@gmail.com>2020-09-07 21:55:35 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2020-09-11 20:15:11 +0300
commitf65886606c2d3b562716de030706dfe1bea4ed5e (patch)
tree4b6113de58850a3427ee5d31f80d9fb8ce228e7a /fs/gfs2
parent0f990222108d214a0924d920e6095b58107d7b59 (diff)
downloadlinux-f65886606c2d3b562716de030706dfe1bea4ed5e.tar.xz
KVM: fix memory leak in kvm_io_bus_unregister_dev()
when kmalloc() fails in kvm_io_bus_unregister_dev(), before removing the bus, we should iterate over all other devices linked to it and call kvm_iodevice_destructor() for them Fixes: 90db10434b16 ("KVM: kvm_io_bus_unregister_dev() should never fail") Cc: stable@vger.kernel.org Reported-and-tested-by: syzbot+f196caa45793d6374707@syzkaller.appspotmail.com Link: https://syzkaller.appspot.com/bug?extid=f196caa45793d6374707 Signed-off-by: Rustam Kovhaev <rkovhaev@gmail.com> Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com> Message-Id: <20200907185535.233114-1-rkovhaev@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'fs/gfs2')
0 files changed, 0 insertions, 0 deletions