summaryrefslogtreecommitdiff
path: root/drivers/block/zram/zram_drv.h
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2015-09-15 20:17:21 +0300
committerBjorn Helgaas <helgaas@kernel.org>2015-09-25 01:06:32 +0300
commit9d9240756e63dd87d6cbf5da8b98ceb8f8192b55 (patch)
tree42cd8cc1a0587095cc8835a8c1d454643ccddcd6 /drivers/block/zram/zram_drv.h
parent38ea72bdb65df2f40ec77b2c9d1413e7f5e34465 (diff)
downloadlinux-9d9240756e63dd87d6cbf5da8b98ceb8f8192b55.tar.xz
PCI: Fix devfn for VPD access through function 0
Commit 932c435caba8 ("PCI: Add dev_flags bit to access VPD through function 0") passes PCI_SLOT(devfn) for the devfn parameter of pci_get_slot(). Generally this works because we're fairly well guaranteed that a PCIe device is at slot address 0, but for the general case, including conventional PCI, it's incorrect. We need to get the slot and then convert it back into a devfn. Fixes: 932c435caba8 ("PCI: Add dev_flags bit to access VPD through function 0") Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Bjorn Helgaas <helgaas@kernel.org> Acked-by: Myron Stowe <myron.stowe@redhat.com> Acked-by: Mark Rustad <mark.d.rustad@intel.com> CC: stable@vger.kernel.org
Diffstat (limited to 'drivers/block/zram/zram_drv.h')
0 files changed, 0 insertions, 0 deletions