diff options
author | 2020-07-19 17:54:53 +0200 | |
---|---|---|
committer | 2020-07-21 16:00:01 -0400 | |
commit | 38e0c89a19fd13f28d2b4721035160a3e66e270b (patch) | |
tree | 67209423cb97b92161898d48aa6f268cd9381f2a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/amd/powerplay: fix a crash when overclocking Vega M (diff) | |
download | wireguard-linux-38e0c89a19fd13f28d2b4721035160a3e66e270b.tar.xz wireguard-linux-38e0c89a19fd13f28d2b4721035160a3e66e270b.zip |
drm/amdgpu: Fix NULL dereference in dpm sysfs handlers
NULL dereference occurs when string that is not ended with space or
newline is written to some dpm sysfs interface (for example pp_dpm_sclk).
This happens because strsep replaces the tmp with NULL if the delimiter
is not present in string, which is then dereferenced by tmp[0].
Reproduction example:
sudo sh -c 'echo -n 1 > /sys/class/drm/card0/device/pp_dpm_sclk'
Signed-off-by: Paweł Gronowski <me@woland.xyz>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions