Re: [PATCH] pci: Account for virtual buses in pci_acs_path_enabled

From: David Ahern
Date: Mon Aug 06 2012 - 00:51:51 EST


On 8/4/12 12:19 PM, Alex Williamson wrote:
It's possible to have buses without an associated bridge
(bus->self == NULL). SR-IOV can generate such buses. When
we find these, skip to the parent bus to look for the next
ACS test.

Signed-off-by: Alex Williamson <alex.williamson@xxxxxxxxxx>
---

David Ahern reported an oops from iommu drivers passing NULL into
this function for the same mistake. Harden this function against
assuming bus->self is valid as well. David, please include this
patch as well as the iommu patches in your testing.

Tested-by: David Ahern <dsahern@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/