drm/amd/display: Fix stream->link_enc unassigned during stream removal
authorjsg <jsg@openbsd.org>
Thu, 7 Apr 2022 07:50:31 +0000 (07:50 +0000)
committerjsg <jsg@openbsd.org>
Thu, 7 Apr 2022 07:50:31 +0000 (07:50 +0000)
From Nicholas Kazlauskas
10dd26349edf901539d066b866490676cbfad73c in linux 5.15.y/5.15.27
3743e7f6fcb938b7d8b7967e6a9442805e269b3d in mainline linux

sys/dev/pci/drm/amd/display/dc/core/dc_resource.c

index 5519502..f6907c0 100644 (file)
@@ -1799,9 +1799,6 @@ enum dc_status dc_remove_stream_from_ctx(
                                dc->res_pool,
                        del_pipe->stream_res.stream_enc,
                        false);
-       /* Release link encoder from stream in new dc_state. */
-       if (dc->res_pool->funcs->link_enc_unassign)
-               dc->res_pool->funcs->link_enc_unassign(new_ctx, del_pipe->stream);
 
        if (del_pipe->stream_res.audio)
                update_audio_usage(