Commit 39762ad4 authored by Changbin Du's avatar Changbin Du Committed by 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: default avatarChangbin Du <>
Signed-off-by: Zhenyu Wang's avatarZhenyu Wang <>
parent a1201053
......@@ -220,7 +220,7 @@ static int mul_force_wake_write(struct intel_vgpu *vgpu,
/*should not hit here*/
gvt_err("invalid forcewake offset 0x%x\n", offset);
return 1;
return -EINVAL;
} else {
ack_reg_offset = FORCEWAKE_ACK_HSW_REG;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment