summaryrefslogtreecommitdiff
path: root/tools/io_uring
diff options
context:
space:
mode:
authorKishon Vijay Abraham I <kishon@ti.com>2019-03-25 15:09:41 +0530
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2019-04-16 15:10:36 +0100
commit421db1ab287eebe80fd203eb009ae92836c586ad (patch)
tree82bf0706c37243585ca6cbac3bd61d2f89277c4c /tools/io_uring
parent626961dd6d32edcdbea1ebc488305533960b5d08 (diff)
PCI: dwc: Fix dw_pcie_ep_find_capability() to return correct capability offset
commit beb4641a787d ("PCI: dwc: Add MSI-X callbacks handler") while adding MSI-X callback handler, introduced dw_pcie_ep_find_capability() and __dw_pcie_ep_find_next_cap() for finding the MSI and MSIX capability. However if MSI or MSIX capability is the last capability (i.e there are no additional items in the capabilities list and the Next Capability Pointer is set to '0'), __dw_pcie_ep_find_next_cap will return '0' even though MSI or MSIX capability may be present because of incorrect ordering of the "next_cap_ptr" check. Fix it. Fixes: beb4641a787d ("PCI: dwc: Add MSI-X callbacks handler") Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Diffstat (limited to 'tools/io_uring')
0 files changed, 0 insertions, 0 deletions