git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19b6984
)
PCI: Return -ENOSYS for SR-IOV operations on non-SR-IOV devices
author
Stefan Assmann
<sassmann@kpanic.de>
Wed, 31 Jul 2013 22:47:56 +0000
(16:47 -0600)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Wed, 31 Jul 2013 22:47:56 +0000
(16:47 -0600)
Change the return value to -ENOSYS if a device is not an SR-IOV PF.
Previously we returned either -ENODEV or -EINVAL.
Also have pci_sriov_get_totalvfs() return 0 in the error case to make the
behaviour consistent whether CONFIG_PCI_IOV is enabled or not.
Signed-off-by: Stefan Assmann <sassmann@kpanic.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
No differences found