Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] drm/xe : avoid the risky function sprintf
@ 2023-12-07  1:28 Bommu Krishnaiah
  2023-12-07  1:28 ` [PATCH v3 1/2] drm/xe: prefer snprintf over sprintf Bommu Krishnaiah
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: Bommu Krishnaiah @ 2023-12-07  1:28 UTC (permalink / raw)
  To: intel-xe; +Cc: Bommu Krishnaiah

These errors were highlighted by Static analyzer. Used snprintf instead of sprint.
Static analyzer Reported "Calling risky function (DC.STRING_BUFFER)”

v2: Removed hard coded values abd used sizeof()
v3: for sysfs used sysfs_emit over sprint

Bommu Krishnaiah (2):
  drm/xe: prefer snprintf over sprintf
  drm/xe/xe_hw_engine_class_sysfs: prefer sysfs_emit over sprintf for
    sysfs

 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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-03-22 11:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-07  1:28 [PATCH v3 0/2] drm/xe : avoid the risky function sprintf Bommu Krishnaiah
2023-12-07  1:28 ` [PATCH v3 1/2] drm/xe: prefer snprintf over sprintf Bommu Krishnaiah
2024-03-22  9:49   ` Ghimiray, Himal Prasad
2023-12-07  1:28 ` [PATCH v3 2/2] drm/xe/xe_hw_engine_class_sysfs: prefer sysfs_emit over sprintf for sysfs Bommu Krishnaiah
2024-03-22  9:56 ` [PATCH v3 0/2] drm/xe : avoid the risky function sprintf Jani Nikula
2024-03-22 10:10 ` ✓ CI.Patch_applied: success for " Patchwork
2024-03-22 10:10 ` ✓ CI.checkpatch: " Patchwork
2024-03-22 10:11 ` ✓ CI.KUnit: " Patchwork
2024-03-22 10:24 ` ✓ CI.Build: " Patchwork
2024-03-22 10:26 ` ✓ CI.Hooks: " Patchwork
2024-03-22 10:28 ` ✓ CI.checksparse: " Patchwork
2024-03-22 11:01 ` ✓ CI.BAT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox