qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] f3bc3a: vfio: Fix memory leak of hostwin


From: Richard Henderson
Subject: [Qemu-commits] [qemu/qemu] f3bc3a: vfio: Fix memory leak of hostwin
Date: Thu, 18 Nov 2021 02:13:36 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: f3bc3a73c908df15966e66f88d5a633bd42fd029
      
https://github.com/qemu/qemu/commit/f3bc3a73c908df15966e66f88d5a633bd42fd029
  Author: Peng Liang <liangpeng10@huawei.com>
  Date:   2021-11-17 (Wed, 17 Nov 2021)

  Changed paths:
    M hw/vfio/common.c

  Log Message:
  -----------
  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>


  Commit: 0055ecca84cb948c935224b4f7ca1ceb26209790
      
https://github.com/qemu/qemu/commit/0055ecca84cb948c935224b4f7ca1ceb26209790
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-11-18 (Thu, 18 Nov 2021)

  Changed paths:
    M hw/vfio/common.c

  Log Message:
  -----------
  Merge tag 'vfio-fixes-20211117.0' of git://github.com/awilliam/qemu-vfio into 
staging

VFIO fixes 2021-11-17

 * Fix hostwin memory leak (Peng Liang)

# gpg: Signature made Wed 17 Nov 2021 08:05:09 PM CET
# gpg:                using RSA key 42F6C04E540BD1A99E7B8A90239B9B6E3BB08B22
# gpg:                issuer "alex.williamson@redhat.com"
# gpg: Good signature from "Alex Williamson <alex.williamson@redhat.com>" [full]
# gpg:                 aka "Alex Williamson <alex@shazbot.org>" [full]
# gpg:                 aka "Alex Williamson <alwillia@redhat.com>" [full]
# gpg:                 aka "Alex Williamson <alex.l.williamson@gmail.com>" 
[full]

* tag 'vfio-fixes-20211117.0' of git://github.com/awilliam/qemu-vfio:
  vfio: Fix memory leak of hostwin

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


Compare: https://github.com/qemu/qemu/compare/3bb87484e77d...0055ecca84cb



reply via email to

[Prev in Thread] Current Thread [Next in Thread]