]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915/gvt/kvmgt: return meaningful error for vgpu creating failure
authorJike Song <jike.song@intel.com>
Fri, 6 Jan 2017 07:16:20 +0000 (15:16 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 9 Jan 2017 03:11:52 +0000 (11:11 +0800)
commit5753394b64a07dd502cb288a5fd52e71fb01fc5d
tree4fbdfa530800684f2db81d96798b9e1f84235d9f
parent03551e971f6e52c8dedd5741bf48631e65675759
drm/i915/gvt/kvmgt: return meaningful error for vgpu creating failure

The vgpu_create() routine we called returns meaningful errors to indicate
failures, so we'd better to pass it to our caller, the mdev framework,
whereby the sysfs is able to tell userspace what happened.

Signed-off-by: Jike Song <jike.song@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/kvmgt.c