Re: [PATCH] drm/i915/gvt: return error when failing to take the module reference

2020-11-12 Thread Zhenyu Wang
On 2020.11.12 21:22:32 +0800, Xiongfeng Wang wrote: > When we fail to take the module reference, we go to the 'undo*' branch and > return. But the returned variable 'ret' has been set as zero by the > above code. Change 'ret' to '-ENODEV' in this situation. > > Fixes: 9bdb073464d6 ("drm/i915/gvt:

[PATCH] drm/i915/gvt: return error when failing to take the module reference

2020-11-12 Thread Xiongfeng Wang
When we fail to take the module reference, we go to the 'undo*' branch and return. But the returned variable 'ret' has been set as zero by the above code. Change 'ret' to '-ENODEV' in this situation. Fixes: 9bdb073464d6 ("drm/i915/gvt: Change KVMGT as self load module") Reported-by: Hulk Robot