commit | 27dbae8f36c1c25008b7885fc07c57054b7dfba3 | [log] [tgz] |
---|---|---|
author | Chris Wilson <chris@chris-wilson.co.uk> | Wed Nov 06 09:13:12 2019 +0000 |
committer | Chris Wilson <chris@chris-wilson.co.uk> | Thu Nov 07 17:05:33 2019 +0000 |
tree | bb14f321d5d9ffc77383298d97946321604e3d17 | |
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