FAILED: Patch "drm/amd/display: Add a dc_state NULL check in dc_state_release" failed to apply to 5.4-stable tree
Sasha Levin
maintainerThe patch below does not apply to the 5.4-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Thanks,
Sasha
------------------ original commit in Linus's tree ------------------
From 334b56cea5d9df5989be6cf1a5898114fa70ad98 Mon Sep 17 00:00:00 2001
From: Allen Pan <[email protected]>
Date: Fri, 23 Feb 2024 18:20:16 -0500
Subject: [PATCH] drm/amd/display: Add a dc_state NULL check in
dc_state_release
[How]
Check wheather state is NULL before releasing it.
Cc Mario Limonciello <[email protected]>
Cc Alex Deucher <[email protected]>
Reviewed-by Charlene Liu <[email protected]>
Acked-by Alex Hung <[email protected]>
Signed-off-by Allen Pan <[email protected]>
Tested-by Daniel Wheeler <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/display/dc/core/dc_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc_state.c +2 -1
@@ -334,7 +334,8 @@ static void dc_state_free(struct kref *kref)void dc_state_release (struct dc_state *state) { -kref_put (&state->refcount, dc_state_free); +if (state !=NULL ) +kref_put (&state->refcount, dc_state_free); }/* * dc_state_add_stream() - Add a new dc_stream_state to a dc_state.
Signature · 1 line
2.43.0