diff options
author | Du, Changbin <changbin.du@intel.com> | 2016-11-11 11:33:06 +0300 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2016-11-14 13:06:43 +0300 |
commit | 0427f06aec4222e0712b2efba1ac60ff56a1c336 (patch) | |
tree | 405d86dd8f7a560192e1d43694fb663dec6c50e5 /net/qrtr | |
parent | 4f3f1aed4b8040f2a7a55561762470f942be2740 (diff) | |
download | linux-0427f06aec4222e0712b2efba1ac60ff56a1c336.tar.xz |
drm/i915/gvt: fix crash in vgpu_reset_execlist
We initiate vgpu->workload_q_head via for_each_engine
macro which may skip unavailable engines. So we should
follow this rule anywhere. The function
intel_vgpu_reset_execlist is not aware of this. Kernel
crash when touch a uninitiated vgpu->workload_q_head[x].
Let's fix it by using for_each_engine_masked and skip
unavailable engine ID. Meanwhile rename ring_bitmap to
general name engine_mask.
v2: remove unnecessary engine activation check (zhenyu)
Signed-off-by: Du, Changbin <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'net/qrtr')
0 files changed, 0 insertions, 0 deletions