kernel_optimize_test/arch/um/drivers
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
..
chan_kern.c
chan_user.c um: fix error return code in winch_tramp() 2021-07-20 16:05:51 +02:00
chan_user.h
chan.h
cow_sys.h
cow_user.c
cow.h
daemon_kern.c
daemon_user.c um: Some fixes to build UML with musl 2020-10-11 23:13:06 +02:00
daemon.h
fd.c
harddog_kern.c
harddog_user.c
hostaudio_kern.c
Kconfig um: Allow static linking for non-glibc implementations 2020-10-11 23:13:15 +02:00
line.c
line.h
Makefile
mconsole_kern.c
mconsole_kern.h
mconsole_user.c
mconsole.h
mmapper_kern.c
net_kern.c
net_user.c
null.c
pcap_kern.c
pcap_user.c um: Some fixes to build UML with musl 2020-10-11 23:13:06 +02:00
pcap_user.h
port_kern.c
port_user.c
port.h
pty.c
random.c um: random: Register random as hwrng-core device 2021-01-06 14:56:55 +01:00
slip_common.c
slip_common.h
slip_kern.c
slip_user.c um: fix error return code in slip_open() 2021-07-20 16:05:51 +02:00
slip.h
slirp_kern.c
slirp_user.c
slirp.h
ssl.c
stderr_console.c
stdio_console.c
stdio_console.h
tty.c
ubd_kern.c um: ubd: Submit all data segments atomically 2021-01-06 14:56:55 +01:00
ubd_user.c
ubd.h
umcast_kern.c
umcast_user.c
umcast.h
vde_kern.c
vde_user.c
vde.h
vector_kern.c um: vector: Use GFP_ATOMIC under spin lock 2020-10-11 23:13:00 +02:00
vector_kern.h
vector_transports.c
vector_user.c um: vector: Add dynamic tap interfaces and scripting 2020-10-11 23:26:37 +02:00
vector_user.h
vhost_user.h
virtio_uml.c um: virtio_uml: fix memory leak on init failures 2021-09-26 14:08:57 +02:00
xterm_kern.c
xterm.c um: chan_xterm: Fix fd leak 2020-12-30 11:53:53 +01:00
xterm.h