iommu/vt-d: Fix the wrong printing in RHSA parsing
authorZhenzhong Duan <zhenzhong.duan@gmail.com>
Thu, 12 Mar 2020 06:09:54 +0000 (14:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:17:58 +0000 (07:17 +0100)
commit9493a6361d8155f500b1e7fed7ab5fb4fa437bfa
tree44a092d17a8ac1af05048dd65ace0e81cda8e4d2
parent2d106e75da45fd3a05cdf35017cbde6e8ef995c4
iommu/vt-d: Fix the wrong printing in RHSA parsing

commit b0bb0c22c4db623f2e7b1a471596fbf1c22c6dc5 upstream.

When base address in RHSA structure doesn't match base address in
each DRHD structure, the base address in last DRHD is printed out.

This doesn't make sense when there are multiple DRHD units, fix it
by printing the buggy RHSA's base address.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@gmail.com>
Fixes: fd0c8894893cb ("intel-iommu: Set a more specific taint flag for invalid BIOS DMAR tables")
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/dmar.c