summary refs log tree commit diff stats
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorPeng Liang <liangpeng10@huawei.com>2021-11-17 09:47:39 +0800
committerAlex Williamson <alex.williamson@redhat.com>2021-11-17 11:25:55 -0700
commitf3bc3a73c908df15966e66f88d5a633bd42fd029 (patch)
tree5cb488903ab08148ca94ce3b32d0caf43a36309f /linux-user/syscall.c
parent3bb87484e77d22cf4e580a78856529c982195d32 (diff)
downloadfocaccia-qemu-f3bc3a73c908df15966e66f88d5a633bd42fd029.tar.gz
focaccia-qemu-f3bc3a73c908df15966e66f88d5a633bd42fd029.zip
vfio: Fix memory leak of hostwin
hostwin is allocated and added to hostwin_list in vfio_host_win_add, but
it is only deleted from hostwin_list in vfio_host_win_del, which causes
a memory leak.  Also, freeing all elements in hostwin_list is missing in
vfio_disconnect_container.

Fix: 2e4109de8e58 ("vfio/spapr: Create DMA window dynamically (SPAPR IOMMU v2)")
CC: qemu-stable@nongnu.org
Signed-off-by: Peng Liang <liangpeng10@huawei.com>
Link: https://lore.kernel.org/r/20211117014739.1839263-1-liangpeng10@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'linux-user/syscall.c')
0 files changed, 0 insertions, 0 deletions