summaryrefslogtreecommitdiff
path: root/include/linux/irq_poll.h
diff options
context:
space:
mode:
authorNiklas Schnelle <schnelle@linux.ibm.com>2021-09-03 19:27:01 +0300
committerHeiko Carstens <hca@linux.ibm.com>2021-09-07 14:38:42 +0300
commitebd9cc6593691e6bc8526e368cedbdfc8034f403 (patch)
tree521f3c056897d525d259087b88c2576353e79edf /include/linux/irq_poll.h
parent19379d456f7b6d46e478cc1587a20d23f9d092ef (diff)
downloadlinux-ebd9cc6593691e6bc8526e368cedbdfc8034f403.tar.xz
s390/pci: fix clp_get_state() handling of -ENODEV
With commit cc049eecfb7a ("s390/pci: simplify CLP List PCI handling") clp_get_state() was changed to make use of the new clp_find_pci() helper function to query a specific function. This however returns -ENODEV when the device is not found at all and this error was passed to the caller. It was missed however that the callers actually expect a success return from clp_get_state() if the device is gone. Fix this by handling the -ENODEV return of clp_find_pci() explicitly in clp_get_state() returning success and setting the state parameter to ZPCI_FN_STATE_RESERVED matching the design concept that a PCI function that disappeared must have been resverved elsewhere. For all other error returns continue to just pass them on to the caller. Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com> Fixes: cc049eecfb7a ("s390/pci: simplify CLP List PCI handling") Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'include/linux/irq_poll.h')
0 files changed, 0 insertions, 0 deletions