summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-05-09 09:13:12 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-28 16:22:57 +0200
commit261bbd90cc53d2835343f056770156cf1e82cf03 (patch)
treea0d210c8f0ea827b96d6b1223eefdfa65680e0d0 /drivers/md
parenta532533f8f1a661ea4eda99d6f9d7afbc75f6067 (diff)
downloadlinux-261bbd90cc53d2835343f056770156cf1e82cf03.tar.gz
linux-261bbd90cc53d2835343f056770156cf1e82cf03.tar.bz2
linux-261bbd90cc53d2835343f056770156cf1e82cf03.zip
uio_hv_generic: Fix another memory leak in error handling paths
commit 0b0226be3a52dadd965644bc52a807961c2c26df upstream. 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 [Shivani: Modified to apply on 5.10.y] Signed-off-by: Shivani Agarwal <shivani.agarwal@broadcom.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions