summaryrefslogtreecommitdiff
path: root/drivers/rapidio
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-05-09 09:13:03 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-26 12:05:17 +0200
commitcdd91637d4ef33e2be19a8e16e72e7d00c996d76 (patch)
tree3e657d71bdb6f171d6c193f6ce513f429e0b16ba /drivers/rapidio
parentb0fc59e62bf9ed8df4733286b1973657e63e360e (diff)
downloadlinux-cdd91637d4ef33e2be19a8e16e72e7d00c996d76.tar.gz
linux-cdd91637d4ef33e2be19a8e16e72e7d00c996d76.tar.bz2
linux-cdd91637d4ef33e2be19a8e16e72e7d00c996d76.zip
uio_hv_generic: Fix a memory leak in error handling paths
commit 3ee098f96b8b6c1a98f7f97915f8873164e6af9d upstream. If 'vmbus_establish_gpadl()' fails, the (recv|send)_gpadl will not be updated and 'hv_uio_cleanup()' in the error handling path will not be able to free the corresponding buffer. In such a case, we need to free the buffer explicitly. 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/4fdaff557deef6f0475d02ba7922ddbaa1ab08a6.1620544055.git.christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/rapidio')
0 files changed, 0 insertions, 0 deletions