]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_balloon: Fix memory leaks on errors in virtballoon_probe()
authorDavid Hildenbrand <david@redhat.com>
Wed, 5 Feb 2020 16:34:01 +0000 (17:34 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 6 Feb 2020 08:40:27 +0000 (03:40 -0500)
commit12af75843c94265bc0d5e3666c013a077f2b7e26
tree86e35b319d9c0cb2318d2168b6341593ace8981b
parent9992a5244e2c1fed6b8a92447686cc902d8f2202
virtio_balloon: Fix memory leaks on errors in virtballoon_probe()

We forget to put the inode and unmount the kernfs used for compaction.

Fixes: 3abb723f464d ("virtio_balloon: replace oom notifier with shrinker")
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-3-david@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_balloon.c