android_kernel_samsung_sm8650/drivers/uio
Christophe JAILLET 0b0226be3a uio_hv_generic: Fix another memory leak in error handling paths
Memory allocated by 'vmbus_alloc_ring()' at the beginning of the probe
function is never freed in the error handling path.

Add the missing 'vmbus_free_ring()' call.

Note that it is already freed in the .remove function.

Fixes: cdfa835c6e ("uio_hv_generic: defer opening vmbus until first use")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/0d86027b8eeed8e6360bc3d52bcdb328ff9bdca1.1620544055.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-14 13:26:04 +02:00
..
Kconfig uio: uio_dfl: add userspace i/o driver for DFL bus 2021-03-28 14:58:18 +02:00
Makefile uio: uio_dfl: add userspace i/o driver for DFL bus 2021-03-28 14:58:18 +02:00
uio_aec.c
uio_cif.c
uio_dfl.c uio: uio_dfl: add userspace i/o driver for DFL bus 2021-03-28 14:58:18 +02:00
uio_dmem_genirq.c
uio_fsl_elbc_gpcm.c uio: uio_fsl_elbc_gpcm: use device-managed allocators 2020-12-09 19:59:00 +01:00
uio_hv_generic.c uio_hv_generic: Fix another memory leak in error handling paths 2021-05-14 13:26:04 +02:00
uio_mf624.c
uio_netx.c
uio_pci_generic.c uio/uio_pci_generic: fix return value changed in refactoring 2021-05-14 13:25:27 +02:00
uio_pdrv_genirq.c
uio_pruss.c
uio_sercos3.c
uio.c