diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-11-06 09:13:12 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-11-07 17:05:33 +0000 |
commit | 27dbae8f36c1c25008b7885fc07c57054b7dfba3 (patch) | |
tree | bb14f321d5d9ffc77383298d97946321604e3d17 /drivers/gpu/drm/bochs | |
parent | 7caaed94eade788e79618685a52e223f23786e0d (diff) |
drm/i915/gem: Safely acquire the ctx->vm when copying
As we read the ctx->vm unlocked before cloning/exporting, we should
validate our reference is correct before returning it. We already do for
clone_vm() but were not so strict around get_ppgtt().
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191106091312.12921-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/bochs')
0 files changed, 0 insertions, 0 deletions