]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: added NULL check at start of dc_validate_stream
authorwinstang <winstang@amd.com>
Mon, 27 May 2024 12:51:19 +0000 (08:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:17:15 +0000 (16:17 -0400)
commit26c56049cc4f1705b498df013949427692a4b0d5
tree0095ac5a285d2463c592d47a3549ce8d37be5b85
parentec14eab37dbb07b92e2079c9b7ef4730d9418f89
drm/amd/display: added NULL check at start of dc_validate_stream

[Why]
prevent invalid memory access

[How]
check if dc and stream are NULL

Co-authored-by: winstang <winstang@amd.com>
Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: winstang <winstang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c