OSDN Git Service

drm/i915/gvt: correct the reset logic
authorPing Gao <ping.a.gao@intel.com>
Wed, 26 Oct 2016 05:36:41 +0000 (13:36 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 26 Oct 2016 05:36:41 +0000 (13:36 +0800)
commit0a8b66e3adbe302a02bb33e1a662416281ade616
treefad073bb536e12ba7830b701db4afcfc62dac2fb
parent40d2428b3a6aaa3d6ba0de0e8780c4b4eb53426c
drm/i915/gvt: correct the reset logic

The current_vgpu will set to NULL after stopping the scheduler when
the reset is triggered by current vgpu, so here need change the
judgement condition for current vgpu detection.

Signed-off-by: Ping Gao <ping.a.gao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/handlers.c