Commit a83ffafd authored by Umio Yasuno's avatar Umio Yasuno Committed by Greg Kroah-Hartman
Browse files

drm/amd/pm: fix null pointer access

[ Upstream commit d524d40e ]

Writing a string without delimiters (' ', '\n', '\0') to the under
gpu_od/fan_ctrl sysfs or pp_power_profile_mode for the CUSTOM profile
will result in a null pointer dereference.

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


Signed-off-by: default avatarUmio Yasuno <coelacanth_dream@protonmail.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3d03c85f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment