projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a120105
)
drm/i915/gvt: fix return value in mul_force_wake_write
author
Changbin Du
<changbin.du@intel.com>
Tue, 27 Dec 2016 05:25:06 +0000
(13:25 +0800)
committer
Zhenyu Wang
<zhenyuw@linux.intel.com>
Mon, 9 Jan 2017 03:05:56 +0000
(11:05 +0800)
All mmio handlers should return a negetive value for failure, not 1.
Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/handlers.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/i915/gvt/handlers.c
b/drivers/gpu/drm/i915/gvt/handlers.c
index e06d5f37bb92d05d4c22456fc97cd8a7042391b4..8cbaf1c83720b796029450c5bb42de27c8b0934f 100644
(file)
--- a/
drivers/gpu/drm/i915/gvt/handlers.c
+++ b/
drivers/gpu/drm/i915/gvt/handlers.c
@@
-220,7
+220,7
@@
static int mul_force_wake_write(struct intel_vgpu *vgpu,
default:
/*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;