]> 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)
commitb73191a06cbbb6daf2f7561aaa54cb6b374f549f
tree4fbdfa530800684f2db81d96798b9e1f84235d9f
parent11d9dbf467e89ab1491c94d33b09d125ddef24a8
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