> On Sep 15, 2015, at 10:17 AM, Alex Williamson <alex.williamson@xxxxxxxxxx> wrote: > > 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@xxxxxxxxxx> > Cc: stable@xxxxxxxxxxxxxxx > --- > > Since the original patch and quirk was marked for stable and applies > to all Intel NICs, regardless of the bus type, I assume this needs to > chase it or VPD might disappear on e1000/e100 if it currently exists. This looks good to me. Acked-by: Mark Rustad <mark.d.rustad@xxxxxxxxx> -- Mark Rustad, Networking Division, Intel Corporation
Attachment:
signature.asc
Description: Message signed with OpenPGP using GPGMail