]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: Only allow WC mmap on prefetchable resources
authorDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 12 Apr 2017 12:25:52 +0000 (13:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 13:46:28 +0000 (15:46 +0200)
commitf21143a53ff89444e761508c76e71fa1f3c6890a
tree343a69f894effba3bc5bb2965b998a88c9796a2d
parentbee38f0f378d5d1a687afcf311515e3adedd2340
PCI: Only allow WC mmap on prefetchable resources

commit cef4d02305a06be581bb7f4353446717a1b319ec upstream.

The /proc/bus/pci mmap interface allows the user to specify whether they
want WC or not.  Don't let them do so on non-prefetchable BARs.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/proc.c