diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-10-11 02:23:26 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2024-10-11 02:23:26 +0000 |
commit | 9b12d8167b8cc02f3dbfc0b4a9649eccd9c81424 (patch) | |
tree | 5b92bd7ed091169ecb38323fa805d43d4a6838db /sys/dev/pci/drm | |
parent | 65078f2c87a0d1da8c8546d283434af26f53e44c (diff) |
drm/amd/display: Check stream before comparing them
From Alex Hung
42d31a33643813cce55ee1ebbad3a2d0d24a08e0 in linux-6.6.y/6.6.55
35ff747c86767937ee1e0ca987545b7eed7a0810 in mainline linux
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r-- | sys/dev/pci/drm/amd/display/dc/core/dc_resource.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c b/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c index 32df2279f61..01e56d1e942 100644 --- a/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c +++ b/sys/dev/pci/drm/amd/display/dc/core/dc_resource.c @@ -2154,6 +2154,8 @@ static bool are_stream_backends_same( bool dc_is_stream_unchanged( struct dc_stream_state *old_stream, struct dc_stream_state *stream) { + if (!old_stream || !stream) + return false; if (!are_stream_backends_same(old_stream, stream)) return false; |