[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <64f48c0c-97e9-bdf0-14fc-ae126603ee51@web.de>
Date: Thu, 28 Nov 2019 08:08:31 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Navid Emamdoost <navid.emamdoost@...il.com>,
Bjorn Helgaas <bhelgaas@...gle.com>, linux-pci@...r.kernel.org
Cc: Navid Emamdoost <emamd001@....edu>,
Nathan Chancellor <natechancellor@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] PCI/IOV: Fix memory leak in pci_iov_add_virtfn()
> 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
Powered by blists - more mailing lists