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: cdfa835c6e5e ("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>
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| uio_aec.c | ||
| uio_cif.c | ||
| uio_dfl.c | ||
| uio_dmem_genirq.c | ||
| uio_fsl_elbc_gpcm.c | ||
| uio_hv_generic.c | ||
| uio_mf624.c | ||
| uio_netx.c | ||
| uio_pci_generic.c | ||
| uio_pdrv_genirq.c | ||
| uio_pruss.c | ||
| uio_sercos3.c | ||
| uio.c | ||