Unverified Commit 0de50927 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12455 drm/amd/display: Add NULL check for function pointer in dcn20_set_output_transfer_func

parents b766961f c302e6e3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -880,6 +880,7 @@ bool dcn20_set_output_transfer_func(struct dc *dc, struct pipe_ctx *pipe_ctx,
	/*
	 * if above if is not executed then 'params' equal to 0 and set in bypass
	 */
	if (mpc->funcs->set_output_gamma)
		mpc->funcs->set_output_gamma(mpc, mpcc_id, params);

	return true;