aboutsummaryrefslogtreecommitdiffstats
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorJoerg Roedel <[email protected]>2019-01-23 07:46:29 +0000
committerJoerg Roedel <[email protected]>2019-01-23 12:51:05 +0000
commitda5d2748e4a4512237764d2a53bdf686eccee18b (patch)
tree7c6ed292218c557c28da3b8cf0319ece25ec79a2 /lib/memory-notifier-error-inject.c
parentiommu/vt-d: Fix memory leak in intel_iommu_put_resv_regions() (diff)
downloadkernel-da5d2748e4a4512237764d2a53bdf686eccee18b.tar.gz
kernel-da5d2748e4a4512237764d2a53bdf686eccee18b.zip
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 <[email protected]> Fixes: a9bf2eec5a6f ('iommu/mediatek: Use helper functions to access dev->iommu_fwspec') Tested-by: Frank Wunderlich <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions