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:
c506fff
)
s390/pci: fix bar check
author
Sebastian Ott
<sebott@linux.vnet.ibm.com>
Fri, 22 Jan 2016 13:03:06 +0000
(14:03 +0100)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Tue, 26 Jan 2016 11:46:17 +0000
(12:46 +0100)
Fix the check which bar space we should map to allow available bars only.
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.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 53139158010dbb428b0a05a07648d9e02779f989..d28d194d580c4d6e32f3a7a12d507c6c9eaa406d 100644
(file)
--- a/
arch/s390/pci/pci.c
+++ b/
arch/s390/pci/pci.c
@@
-270,7
+270,7
@@
void __iomem *pci_iomap_range(struct pci_dev *pdev,
struct zpci_dev *zdev = to_zpci(pdev);
int idx;
- if (
(bar & 7) != bar
)
+ if (
!pci_resource_len(pdev, bar)
)
return NULL;
idx = zdev->bars[bar].map_idx;