diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-06-25 11:06:03 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-06-25 16:28:23 +0100 |
commit | dd12c6ca5b45fd54e80c1424b11a5a25ad913dbb (patch) | |
tree | e3d85b415b8b610f5272ce6c8c53c2bad5eb289d /drivers/gpu/drm/i915/intel_runtime_pm.c | |
parent | 8d52e447807b350b98ffb4e64bc2fcc1f181c5be (diff) | |
download | linux-dd12c6ca5b45fd54e80c1424b11a5a25ad913dbb.tar.bz2 |
drm/i915/execlists: Check for ce->state before destroy
As we may cancel the ce->state allocation during context pinning (but
crucially after we mark ce as operational), that means we may be asked
to destroy a nonexistent ce->state. Given the choice in handing a
complex error path on pinning, and just ignoring the lack of state in
destroy, choice the latter for simplicity.
Reported-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180625100604.22598-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/intel_runtime_pm.c')
0 files changed, 0 insertions, 0 deletions