]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/msi: fix the pci_alloc_irq_vectors_affinity stub
authorChristoph Hellwig <hch@lst.de>
Sat, 20 May 2017 16:59:54 +0000 (18:59 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 May 2017 15:45:56 +0000 (08:45 -0700)
commit9caa52f805494ea33e56e979234722ae1c4a3c65
tree628a2ae3c3abfde7d7975f25ea8c1cdbde9c3d1f
parentb6a029dbc2dad7203d3a7b53459324e71fb8c324
PCI/msi: fix the pci_alloc_irq_vectors_affinity stub

We need to return an error for any call that asks for MSI / MSI-X
vectors only, so that non-trivial fallback logic can work properly.

Also valid dev->irq and use the "correct" errno value based on feedback
from Linus.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Steven Rostedt <rostedt@goodmis.org>
Fixes: 453878a5 ("PCI: Provide sensible IRQ vector alloc/free routines")
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/pci.h