projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64fafcf
)
drm/i915/gvt: fix detect_host calling logic
author
Xiaoguang Chen
<
[email protected]
>
Tue, 25 Oct 2016 08:56:45 +0000
(16:56 +0800)
committer
Zhenyu Wang
<
[email protected]
>
Wed, 26 Oct 2016 05:23:04 +0000
(13:23 +0800)
Like other routines, intel_gvt_hypervisor_detect_host returns 0
for success.
Signed-off-by: Xiaoguang Chen <
[email protected]
>
Signed-off-by: Jike Song <
[email protected]
>
Signed-off-by: Zhenyu Wang <
[email protected]
>
drivers/gpu/drm/i915/gvt/gvt.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/gvt/gvt.c
b/drivers/gpu/drm/i915/gvt/gvt.c
index bf0377768a0d02dd769944d3c90e1302a67249c0..385969a8921680f71e1f57a0843f605d20538cea 100644
(file)
--- a/
drivers/gpu/drm/i915/gvt/gvt.c
+++ b/
drivers/gpu/drm/i915/gvt/gvt.c
@@
-65,6
+65,8
@@
struct intel_gvt_io_emulation_ops intel_gvt_io_emulation_ops = {
*/
int intel_gvt_init_host(void)
{
+ int ret;
+
if (intel_gvt_host.initialized)
return 0;
@@
-90,7
+92,8
@@
int intel_gvt_init_host(void)
return -EINVAL;
/* Try to detect if we're running in host instead of VM. */
- if (!intel_gvt_hypervisor_detect_host())
+ ret = intel_gvt_hypervisor_detect_host();
+ if (ret)
return -ENODEV;
gvt_dbg_core("Running with hypervisor %s in host mode\n",