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

Alex Deucher alexdeucher at gmail.com
Thu Mar 25 16:20:08 UTC 2021


Applied the series.  Thanks!

Alex

On Wed, Mar 24, 2021 at 5:17 AM Tian Tao <tiantao6 at hisilicon.com> wrote:
>
> 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
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel


More information about the dri-devel mailing list