On Tue, 18 Aug 2020 at 19:43, Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> wrote: > > Since we store a pointer to the fake iommu device that is allocated on > the stack, as soon as we leave the function it goes out of scope and any > future dereference is undefined behaviour. Just in case we may need to > look at the fake iommu device after initialiation, move the allocation > from the stack into the data. > > Fixes: 01b9d4e21148 ("iommu/vt-d: Use dev_iommu_priv_get/set()") > Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> Reviewed-by: Matthew Auld <matthew.auld@xxxxxxxxx> _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx