[PATCH v4 0/2] drm/xe : avoid the risky function sprintf
Bommu Krishnaiah
krishnaiah.bommu at intel.com
Mon Mar 25 07:59:24 UTC 2024
drm/xe/xe_hw_engine_class_sysfs: use sysfs_emit() for attr's _show()
sprintf() is deprecated for sysfs, use preferred sysfs_emit() instead.
drm/xe: prefer snprintf over sprintf
since the sprintf() function lacks built-in protection against buffer
overflows using the snprintf() function.
Bommu Krishnaiah (2):
drm/xe: prefer snprintf over sprintf
drm/xe/xe_hw_engine_class_sysfs: use sysfs_emit() for attr's _show()
drivers/gpu/drm/xe/xe_debugfs.c | 2 +-
drivers/gpu/drm/xe/xe_exec_queue.c | 12 +++----
drivers/gpu/drm/xe/xe_gt_debugfs.c | 2 +-
drivers/gpu/drm/xe/xe_gt_idle.c | 4 +--
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c | 36 +++++++++----------
drivers/gpu/drm/xe/xe_hw_fence.c | 2 +-
6 files changed, 29 insertions(+), 29 deletions(-)
--
2.25.1
More information about the Intel-xe
mailing list