aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMaximilian Heyne <mheyne@amazon.de>2023-09-07 14:17:16 +0000
committerCatalin Marinas <catalin.marinas@arm.com>2023-09-12 16:59:10 +0100
commit8d88bf44c4d35e86f2c597d7f932bc695356f582 (patch)
tree728aa107dad1ec9f5f09ce98920b7c8ea2015b57 /tools
parentb865decc22725baa1f59b7799b0eb871e68b8906 (diff)
downloadlinux-aarch64-kmemleak.tar.gz
virtio-mmio: fix memory leak of vm_devHEADkmemleak
With the recent removal of vm_dev from devres its memory is only freed via the callback virtio_mmio_release_dev. However, this only takes effect after device_add is called by register_virtio_device. Until then it's an unmanaged resource and must be explicitly freed on error exit. This bug was discovered and resolved using Coverity Static Analysis Security Testing (SAST) by Synopsys, Inc. Cc: <stable@vger.kernel.org> Fixes: 55c91fedd03d ("virtio-mmio: don't break lifecycle of vm_dev") Signed-off-by: Maximilian Heyne <mheyne@amazon.de> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions