]> git.baikalelectronics.ru Git - kernel.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)
commit52847a91aa13c608cdeaaed08c42b7d5854b14a5
tree4fbdfa530800684f2db81d96798b9e1f84235d9f
parent5e304b57d0e2566976f845f60e92d863fd76d24a
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