PCI: Fix another sanity check bug in /proc/pci mmap
authorDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 12 Apr 2017 12:25:51 +0000 (13:25 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 18 Apr 2017 18:00:35 +0000 (13:00 -0500)
commit17caf56731311c9596e7d38a70c88fcb6afa6a1b
tree9af1612f811a15941647cf6a58e5bd71bc3f3d50
parent6bccc7f426abd640f08d8c75fb22f99483f201b4
PCI: Fix another sanity check bug in /proc/pci mmap

Don't match MMIO maps with I/O BARs and vice versa.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org
drivers/pci/proc.c