commit | 156c55325d30261d250e88ed3a39f22008f4ca16 | [log] [tgz] |
---|---|---|
author | Po Liu <po.liu@nxp.com> | Mon Aug 29 15:28:01 2016 +0800 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Mon Sep 12 16:23:38 2016 -0500 |
tree | 2a9d74672916907e1ebd627a731fd0609aeaba39 | |
parent | 8e2e03179923479ca0c0b6fdc7c93ecf89bce7a8 [diff] |
PCI: Check for pci_setup_device() failure in pci_iov_add_virtfn() If pci_setup_device() returns failure, we must return failure from pci_iov_add_virtfn(). If we ignore the failure and continue with an uninitialized pci_dev for virtfn, we crash later when we try to use those uninitialized parts. Signed-off-by: Po Liu <po.liu@nxp.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>