Commit 3c41114d authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amd/display: Use GFP_ATOMIC in dc_create_plane_state()

This can get called from an atomic context.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4470


Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 8acdad93)
Cc: stable@vger.kernel.org
parent b7851f8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ uint8_t dc_plane_get_pipe_mask(struct dc_state *dc_state, const struct dc_plane
struct dc_plane_state *dc_create_plane_state(const struct dc *dc)
{
	struct dc_plane_state *plane_state = kvzalloc(sizeof(*plane_state),
							GFP_KERNEL);
							GFP_ATOMIC);

	if (NULL == plane_state)
		return NULL;