kernel_optimize_test/arch/um
Johannes Berg 9d49973b08 um: virtio_uml: fix memory leak on init failures
commit 7ad28e0df7ee9dbcb793bb88dd81d4d22bb9a10e upstream.

If initialization fails, e.g. because the connection failed,
we leak the 'vu_dev'. Fix that. Reported by smatch.

Fixes: 5d38f32499 ("um: drivers: Add virtio vhost-user driver")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-26 14:08:57 +02:00
..
configs
drivers um: virtio_uml: fix memory leak on init failures 2021-09-26 14:08:57 +02:00
include um: defer killing userspace on page table update failures 2021-03-04 11:38:42 +01:00
kernel um: Disable CONFIG_GCOV with MODULES 2021-05-22 11:40:53 +02:00
os-Linux um: defer killing userspace on page table update failures 2021-03-04 11:38:42 +01:00
scripts
.gitignore
Kconfig
Kconfig.debug um: Disable CONFIG_GCOV with MODULES 2021-05-22 11:40:53 +02:00
Makefile
Makefile-os-Linux
Makefile-skas