diff options
author | Xiongfeng Wang <[email protected]> | 2020-11-12 21:22:32 +0800 |
---|---|---|
committer | Zhenyu Wang <[email protected]> | 2020-11-13 12:16:52 +0800 |
commit | 4ec2b69da5e1544dbadb30cddb49c8df60209b0c (patch) | |
tree | 8984af56b5f8740cc9d939e0b419ffb8badb91bf /tools/perf/scripts/python/compaction-times.py | |
parent | edb8d77a939c422f3ae57f557cd1d6899d9bafad (diff) |
drm/i915/gvt: return error when failing to take the module reference
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")
Reviewed-by: Zhenyu Wang <[email protected]>
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Xiongfeng Wang <[email protected]>
Signed-off-by: Zhenyu Wang <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions