diff options
author | Navid Emamdoost <[email protected]> | 2019-11-25 13:52:52 -0600 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2019-12-09 15:51:32 -0600 |
commit | 8c386cc817878588195dde38e919aa6ba9409d58 (patch) | |
tree | c18a8db6ae74fc34696e40231399ee87aae28599 /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | e42617b825f8073569da76dc4510bfa019b1c35a (diff) |
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.
Fixes: 156c55325d30 ("PCI: Check for pci_setup_device() failure in pci_iov_add_virtfn()")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Navid Emamdoost <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions