Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0cabadd authored by Sebastian Ott's avatar Sebastian Ott Committed by Martin Schwidefsky
Browse files

s390/pci: fix bar check



Fix the check which bar space we should map to allow available bars only.

Signed-off-by: default avatarSebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: default avatarGerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent c506fff3
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -270,7 +270,7 @@ void __iomem *pci_iomap_range(struct pci_dev *pdev,
	struct zpci_dev *zdev =	to_zpci(pdev);
	struct zpci_dev *zdev =	to_zpci(pdev);
	int idx;
	int idx;


	if ((bar & 7) != bar)
	if (!pci_resource_len(pdev, bar))
		return NULL;
		return NULL;


	idx = zdev->bars[bar].map_idx;
	idx = zdev->bars[bar].map_idx;