]> www.infradead.org Git - users/dwmw2/linux.git/commit
virtio-balloon: Fix memory leak when unloading while hinting is in progress
authorDavid Hildenbrand <david@redhat.com>
Wed, 5 Feb 2020 16:34:00 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:37:20 +0000 (04:37 -0800)
commit65ba6008889cfa386f1067a3207272de9b2d9d09
tree964a0e831c71a191f0ef26fcad5014f5e27fd1e0
parentcf206bca3d68a401de7e7bbc293a507e528d0778
virtio-balloon: Fix memory leak when unloading while hinting is in progress

commit 6c22dc61c76b7e7d355f1697ba0ecf26d1334ba6 upstream.

When unloading the driver while hinting is in progress, we will not
release the free page blocks back to MM, resulting in a memory leak.

Fixes: 86a559787e6f ("virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT")
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Wei Wang <wei.w.wang@intel.com>
Cc: Liang Li <liang.z.li@intel.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20200205163402.42627-2-david@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/virtio/virtio_balloon.c