projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge tag 'gvt-fixes-2022-07-11' of https://github.com/intel/gvt-linux into drm-intel...
[platform/kernel/linux-starfive.git]
/
drivers
/
gpu
/
drm
/
i915
/
gvt
/
cmd_parser.c
diff --git
a/drivers/gpu/drm/i915/gvt/cmd_parser.c
b/drivers/gpu/drm/i915/gvt/cmd_parser.c
index
b9eb75a
..
1c35a41
100644
(file)
--- a/
drivers/gpu/drm/i915/gvt/cmd_parser.c
+++ b/
drivers/gpu/drm/i915/gvt/cmd_parser.c
@@
-3117,9
+3117,9
@@
void intel_gvt_update_reg_whitelist(struct intel_vgpu *vgpu)
continue;
vaddr = shmem_pin_map(engine->default_state);
continue;
vaddr = shmem_pin_map(engine->default_state);
- if (
IS_ERR(vaddr)
) {
- gvt_err("failed to map %s->default state
, err:%zd
\n",
- engine->name
, PTR_ERR(vaddr)
);
+ if (
!vaddr
) {
+ gvt_err("failed to map %s->default state\n",
+ engine->name);
return;
}
return;
}