diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-09-16 11:50:22 +0100 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2020-09-23 10:15:46 +0300 |
commit | 16cce04cdb200ba905d1241b425ac48da5a9ace5 (patch) | |
tree | b238fe5baf5347329f5ad5a5f79e2004e089c490 /ipc/sem.c | |
parent | e89c8323b3f19a964453f9bb99a1ae2fdf63f9ed (diff) | |
download | linux-16cce04cdb200ba905d1241b425ac48da5a9ace5.tar.bz2 |
drm/i915/selftests: Push the fake iommu device from the stack to data
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@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200916105022.28316-2-chris@chris-wilson.co.uk
(cherry picked from commit 9f9f4101fc98db56714e71676d5a1e2d27e01f7e)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'ipc/sem.c')
0 files changed, 0 insertions, 0 deletions