Files
linux/drivers/gpu/drm
Paweł Gronowski 9cb268215d 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>
2020-07-21 15:37:40 -04:00
..
2020-04-03 17:11:41 +02:00
2020-07-08 09:04:25 -04:00
2020-06-24 09:17:34 +02:00
2020-04-03 17:11:41 +02:00
2020-05-27 14:31:42 +03:00
2020-04-03 17:11:41 +02:00
2020-04-28 15:05:19 +02:00
2020-05-29 12:58:11 +02:00
2020-03-16 09:27:09 +01:00
2020-06-24 09:17:34 +02:00
2020-05-27 14:31:42 +03:00
2020-04-03 17:11:41 +02:00
2020-04-28 16:05:15 +02:00