Skip to content

Commit ede98c3

Browse files
alexdeuchergregkh
authored andcommitted
drm/amd/display: Use GFP_ATOMIC in dc_create_plane_state()
commit 3c41114 upstream. This can get called from an atomic context. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4470 Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 8acdad9) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9837f8d commit ede98c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/display/dc/core/dc_surface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ uint8_t dc_plane_get_pipe_mask(struct dc_state *dc_state, const struct dc_plane
8686
struct dc_plane_state *dc_create_plane_state(const struct dc *dc)
8787
{
8888
struct dc_plane_state *plane_state = kvzalloc(sizeof(*plane_state),
89-
GFP_KERNEL);
89+
GFP_ATOMIC);
9090

9191
if (NULL == plane_state)
9292
return NULL;

0 commit comments

Comments
 (0)