Files
Dan Carpenter 0ff76bd07b drm/i915/gvt: Fix error code in intel_gvt_init_device()
[ Upstream commit 329328ec6a ]

The intel_gvt_init_vgpu_type_groups() function is only called from
intel_gvt_init_device().  If it fails then the intel_gvt_init_device()
prints the error code and propagates it back again.  That's a bug
because false is zero/success.  The fix is to modify it to return zero
or negative error codes and make everything consistent.

Fixes: c5d71cb317 ("drm/i915/gvt: Move vGPU type related code into gvt file")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/YHaFQtk/DIVYK1u5@mwanda
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-14 09:44:29 +02:00
..
2020-10-29 09:57:40 +01:00
2021-05-11 14:04:08 +02:00
2020-06-30 15:37:11 -04:00
2021-05-11 14:04:10 +02:00
2020-02-11 04:35:36 -08:00
2021-01-27 11:47:42 +01:00
2021-03-30 14:35:22 +02:00