mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-25 03:39:42 +07:00
drm/amd/display: add assert in enable FBC
Adding assert to prevent possible null deref warning. Only can happen under abnormal circumstances. Signed-off-by: Roman Li <Roman.Li@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
a052a516de
commit
7a84077304
@ -1801,6 +1801,9 @@ static bool should_enable_fbc(struct dc *dc,
|
||||
}
|
||||
}
|
||||
|
||||
/* Pipe context should be found */
|
||||
ASSERT(pipe_ctx);
|
||||
|
||||
/* Only supports eDP */
|
||||
if (pipe_ctx->stream->sink->link->connector_signal != SIGNAL_TYPE_EDP)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user