diff options
author | Kevin Mitchell <kevmitch@arista.com> | 2019-06-12 14:52:03 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-29 10:24:27 +0100 |
commit | d1b09d42cfd129c997d87db14467344f688d28a4 (patch) | |
tree | 8a743a726245952e88a5b9de403e215265d23acb /lib/devres.c | |
parent | 4a66a4f106e724fa50b85e1fe48b9ff273f47477 (diff) |
iommu/amd: Make iommu_disable safer
[ Upstream commit 3ddbe913e55516d3e2165d43d4d5570761769878 ]
Make it safe to call iommu_disable during early init error conditions
before mmio_base is set, but after the struct amd_iommu has been added
to the amd_iommu_list. For example, this happens if firmware fails to
fill in mmio_phys in the ACPI table leading to a NULL pointer
dereference in iommu_feature_disable.
Fixes: 2c0ae1720c09c ('iommu/amd: Convert iommu initialization to state machine')
Signed-off-by: Kevin Mitchell <kevmitch@arista.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/devres.c')
0 files changed, 0 insertions, 0 deletions