Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 5728d5e5 authored by Paul Wu's avatar Paul Wu Committed by Alex Deucher
Browse files

drm/amd/display: Set stream_count to 0 when dc_resource_state_destruct.


[Why]
When hardware need to be reset, driver need to reset stream objects but
dc_resource_state_destruct function omit resetting stream_count. It will
lead page fault if some logic will touch stream object.

[How]
Set stream_count to 0 when dc_resource_state_destruct.

Signed-off-by: default avatarPaul Wu <paul.wu@amd.com>
Reviewed-by: default avatarAric Cyr <Aric.Cyr@amd.com>
Acked-by: default avatarWayne Lin <Wayne.Lin@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 05e62b6b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment