We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71225e1 commit b719a9cCopy full SHA for b719a9c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -4554,15 +4554,15 @@ void dc_resource_state_copy_construct(
4554
struct dml2_context *dml2 = NULL;
4555
4556
// Need to preserve allocated dml2 context
4557
- if (src_ctx->clk_mgr->ctx->dc->debug.using_dml2)
+ if (src_ctx->clk_mgr && src_ctx->clk_mgr->ctx->dc->debug.using_dml2)
4558
dml2 = dst_ctx->bw_ctx.dml2;
4559
#endif
4560
4561
*dst_ctx = *src_ctx;
4562
4563
#ifdef CONFIG_DRM_AMD_DC_FP
4564
// Preserve allocated dml2 context
4565
4566
dst_ctx->bw_ctx.dml2 = dml2;
4567
4568
0 commit comments