bus/pci: fix UIO bind check
authorJianfeng Tan <jianfeng.tan@intel.com>
Tue, 24 Oct 2017 07:44:53 +0000 (07:44 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Oct 2017 21:35:00 +0000 (23:35 +0200)
commit633e4c7d716e852a0a41267fd349c6275351c42f
tree49cd4b9015f87333a971a76ada0dab9b61f94aa3
parent3964426e5855002eafd57b807e69766b8c9e7446
bus/pci: fix UIO bind check

When checking if any devices bound to uio, we did not exclude
those which are blacklisted (or in the case that a whitelist
is specified).

This patch fixes it by only checking whitelisted devices, or
not-blacklisted devices depending on the bus scan mode.

Fixes: 815c7deaed2d ("pci: get IOMMU class on Linux")

Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Reviewed-by: Gaetan Rivet <gaetan.rivet@6wind.com>
Acked-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
drivers/bus/pci/linux/pci.c