[PATCH drm/amdgpu 0/2] Convert sysfs sprintf/snprintf family to sysfs_emit

Tian Tao tiantao6 at hisilicon.com
Wed Mar 24 09:17:39 UTC 2021


Use the generic sysfs_emit() function to take place of
snprintf/scnprintf, to avoid buffer overrun.

Tian Tao (2):
  drm/amdgpu: Convert sysfs sprintf/snprintf family to sysfs_emit
  drm/amd/pm: Convert sysfs sprintf/snprintf family to sysfs_emit

 drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c   |  8 +--
 drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c  |  6 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c      |  2 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c      |  8 +--
 drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 32 +++++-----
 drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c     |  4 +-
 drivers/gpu/drm/amd/amdgpu/df_v3_6.c         |  2 +-
 drivers/gpu/drm/amd/pm/amdgpu_pm.c           | 88 ++++++++++++++--------------
 9 files changed, 73 insertions(+), 79 deletions(-)

-- 
2.7.4



More information about the amd-gfx mailing list