]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: fix crash/reboot while accessing sysfs files
authorShirish S <shirish.s@amd.com>
Thu, 17 Sep 2020 08:37:32 +0000 (14:07 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Sep 2020 16:25:09 +0000 (12:25 -0400)
commit596dfaed29b6ae61ef9a4d78c1e7cb79c268ec4b
treef680b0d83991f2d5e720609c4591a091bac98bf0
parentfe373c7fd34e294e22b39d8ece9b5f9a88877799
drm/amd/display: fix crash/reboot while accessing sysfs files

read/writes to aux_dpcd_* sysfs entries leads to system
reboot or hang.
Hence fix the handling of input data and reporting of errors
appropriately to the user space.

Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c