projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0308c1
)
s390/pci: improve bar check
author
Sebastian Ott
<sebott@linux.ibm.com>
Tue, 31 Jul 2018 13:59:09 +0000
(09:59 -0400)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Thu, 7 Feb 2019 10:57:04 +0000
(11:57 +0100)
Improve the bar check in pci_iomap_range to cover functions
for which we recognize more bars than what we can access due
to AR restrictions.
Signed-off-by: Sebastian Ott <sebott@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci.c
patch
|
blob
|
history
diff --git
a/arch/s390/pci/pci.c
b/arch/s390/pci/pci.c
index a966d7bfac579daa15514983d56993862363c502..353161c2e3098d2dfb4615faf3d7544f3101f75c 100644
(file)
--- a/
arch/s390/pci/pci.c
+++ b/
arch/s390/pci/pci.c
@@
-285,7
+285,7
@@
void __iomem *pci_iomap_range(struct pci_dev *pdev,
struct zpci_dev *zdev = to_zpci(pdev);
int idx;
- if (!pci_resource_len(pdev, bar))
+ if (!pci_resource_len(pdev, bar)
|| bar >= PCI_BAR_COUNT
)
return NULL;
idx = zdev->bars[bar].map_idx;