Re: [PATCH v2] PCI/IOV: Fix memory leak in pci_iov_add_virtfn()

From: Markus Elfring
Date: Thu Nov 28 2019 - 02:09:22 EST


> In the implementation of pci_iov_add_virtfn() the allocated virtfn is
> leaked if pci_setup_device() fails. The error handling is not calling
> pci_stop_and_remove_bus_device(). Change the goto label to failed2.

Would it be nicer to rename numbered labels also according to the
Linux coding style?

Regards,
Markus