]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
VMCI: Fix some error handling paths in vmci_guest_probe_device()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 14 Jun 2022 19:06:14 +0000 (13:06 -0600)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 22 Jun 2022 12:41:24 +0000 (14:41 +0200)
commitd8b045d00d05a160d8fab68d6a3500e013714f57
treed903492a754bb351878a9b510c6342c3f6544d85
parentb8414c3c6eb6d799ffc23f06f9669334a7bb8328
VMCI: Fix some error handling paths in vmci_guest_probe_device()

BugLink: https://bugs.launchpad.net/bugs/1978145
The 'err_remove_vmci_dev_g' error label is not at the right place.
This could lead to un-released resource.

There is also a missing label. If pci_alloc_irq_vectors() fails, the
previous vmci_event_subscribe() call must be undone.

Acked-by: Vishnu Dasa <vdasa@vmware.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/959218ce3b135197946d85cd9453551cd04fa5da.1645734041.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 77e861619baea5a7c934e47fda74b03c0b072aec)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Khaled Elmously <khalid.elmously@canonical.com>
Acked-by: Cengiz Can <cengiz.can@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/misc/vmw_vmci/vmci_guest.c