diff options
author | Joerg Roedel <jroedel@suse.de> | 2019-01-23 08:46:29 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-01-23 13:51:05 +0100 |
commit | da5d2748e4a4512237764d2a53bdf686eccee18b (patch) | |
tree | 7c6ed292218c557c28da3b8cf0319ece25ec79a2 /drivers/iommu/amd_iommu.c | |
parent | 198bc3252ea3a45b0c5d500e6a5b91cfdd08f001 (diff) |
iommu/mediatek: Use correct fwspec in mtk_iommu_add_device()
The mtk_iommu_add_device() function keeps the fwspec in an
on-stack pointer and calls mtk_iommu_create_mapping(), which
might change its source, dev->iommu_fwspec. This causes the
on-stack pointer to be obsoleted and the device
initialization to fail. Update the on-stack fwspec pointer
after mtk_iommu_create_mapping() has been called.
Reported-by: Frank Wunderlich <frank-w@public-files.de>
Fixes: a9bf2eec5a6f ('iommu/mediatek: Use helper functions to access dev->iommu_fwspec')
Tested-by: Frank Wunderlich <frank-w@public-files.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
0 files changed, 0 insertions, 0 deletions