artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b389496
)
drm/amd/display: Add null check for set_output_gamma in dcn30_set_output_transfer_func
author
jsg
<jsg@openbsd.org>
Mon, 7 Oct 2024 05:02:58 +0000
(
05:02
+0000)
committer
jsg
<jsg@openbsd.org>
Mon, 7 Oct 2024 05:02:58 +0000
(
05:02
+0000)
From Srinivasan Shanmugam
ddf9ff244d704e1903533f7be377615ed34b83e7
in linux-6.6.y/6.6.54
08ae395ea22fb3d9b318c8bde28c0dfd2f5fa4d2
in mainline linux
sys/dev/pci/drm/amd/display/dc/dcn30/dcn30_hwseq.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/drm/amd/display/dc/dcn30/dcn30_hwseq.c
b/sys/dev/pci/drm/amd/display/dc/dcn30/dcn30_hwseq.c
index
ba47a1c
..
d59af32
100644
(file)
--- a/
sys/dev/pci/drm/amd/display/dc/dcn30/dcn30_hwseq.c
+++ b/
sys/dev/pci/drm/amd/display/dc/dcn30/dcn30_hwseq.c
@@
-214,7
+214,11
@@
bool dcn30_set_output_transfer_func(struct dc *dc,
}
}
- mpc->funcs->set_output_gamma(mpc, mpcc_id, params);
+ if (mpc->funcs->set_output_gamma)
+ mpc->funcs->set_output_gamma(mpc, mpcc_id, params);
+ else
+ DC_LOG_ERROR("%s: set_output_gamma function pointer is NULL.\n", __func__);
+
return ret;
}