artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3682f6
)
drm/amd/display: check top_pipe_to_program pointer
author
jsg
<jsg@openbsd.org>
Thu, 27 Jan 2022 22:56:43 +0000
(22:56 +0000)
committer
jsg
<jsg@openbsd.org>
Thu, 27 Jan 2022 22:56:43 +0000
(22:56 +0000)
From Yang Li
1fffa8ffd62fc511d4447b793641252c4743e81c
in linux 5.15.y/5.15.17
a689e8d1f80012f90384ebac9dcfac4201f9f77e
in mainline linux
sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c
b/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c
index
c798c65
..
1860ccc
100644
(file)
--- a/
sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c
+++ b/
sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c
@@
-2703,7
+2703,8
@@
static void commit_planes_for_stream(struct dc *dc,
#endif
if ((update_type != UPDATE_TYPE_FAST) && stream->update_flags.bits.dsc_changed)
- if (top_pipe_to_program->stream_res.tg->funcs->lock_doublebuffer_enable) {
+ if (top_pipe_to_program &&
+ top_pipe_to_program->stream_res.tg->funcs->lock_doublebuffer_enable) {
if (should_use_dmub_lock(stream->link)) {
union dmub_hw_lock_flags hw_locks = { 0 };
struct dmub_hw_lock_inst_flags inst_flags = { 0 };