]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/pm: Handle non-terminated overdrive commands.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 17 Oct 2023 14:01:35 +0000 (16:01 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Oct 2023 19:11:26 +0000 (15:11 -0400)
commit08e9ebc75b5bcfec9d226f9e16bab2ab7b25a39a
treeaed9f199a0b5c02c76247f175364888b177d0016
parent9248462d7e0862883df6741ec0e1bb41c3698b22
drm/amd/pm: Handle non-terminated overdrive commands.

The incoming strings might not be terminated by a newline
or a 0.

(found while testing a program that just wrote the string
 itself, causing a crash)

Cc: stable@vger.kernel.org
Fixes: e3933f26b657 ("drm/amd/pp: Add edit/commit/show OD clock/voltage support in sysfs")
Signed-off-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/amdgpu_pm.c