Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm
Paweł Gronowski 38e0c89a19 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
2020-07-21 16:00:01 -04:00
..
2020-04-28 16:04:00 +02:00
2020-04-02 14:16:44 +02:00
2020-04-21 09:02:29 +02:00
2020-04-02 14:16:44 +02:00
2020-04-24 20:51:24 +08:00
2020-04-03 17:11:41 +02:00
2020-07-09 14:42:49 -04:00
2020-06-21 05:12:57 +03:00
2020-04-02 14:16:45 +02:00
2020-04-28 16:05:15 +02:00
2020-06-16 13:31:47 +02:00
2020-04-28 15:15:59 +02:00
2020-03-26 15:45:36 +01:00
2020-04-02 14:16:46 +02:00
2020-04-03 17:11:41 +02:00
2020-04-03 17:11:41 +02:00
2019-10-08 18:29:00 +02:00
2020-04-28 15:05:19 +02:00
2020-06-24 21:34:11 +02:00
2020-03-26 15:38:09 +01:00
2020-03-16 09:27:09 +01:00
2020-04-29 18:44:26 +03:00
2020-04-03 17:11:41 +02:00
2020-04-28 16:05:15 +02:00