]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit9de9a54aba76ae6b3eb5da221114619977872ec6
treef680b0d83991f2d5e720609c4591a091bac98bf0
parent59d7115dae02c9eea9f44e5a0081e8a62a13b12c
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