提交 39762ad4 编写于 作者: C Changbin Du 提交者: Zhenyu Wang

drm/i915/gvt: fix return value in mul_force_wake_write

All mmio handlers should return a negetive value for failure, not 1.
Signed-off-by: NChangbin Du <changbin.du@intel.com>
Signed-off-by: NZhenyu Wang <zhenyuw@linux.intel.com>
上级 a1201053
...@@ -220,7 +220,7 @@ static int mul_force_wake_write(struct intel_vgpu *vgpu, ...@@ -220,7 +220,7 @@ static int mul_force_wake_write(struct intel_vgpu *vgpu,
default: default:
/*should not hit here*/ /*should not hit here*/
gvt_err("invalid forcewake offset 0x%x\n", offset); gvt_err("invalid forcewake offset 0x%x\n", offset);
return 1; return -EINVAL;
} }
} else { } else {
ack_reg_offset = FORCEWAKE_ACK_HSW_REG; ack_reg_offset = FORCEWAKE_ACK_HSW_REG;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册