X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH 0/2] platform/x86/intel/uncore-freq: String handling improvements
@ 2025-12-30  8:05 Kaushlendra Kumar
  2025-12-30  8:05 ` [PATCH 1/2] platform/x86/intel/uncore-freq: Replace sprintf() with snprintf() Kaushlendra Kumar
  2025-12-30  8:05 ` [PATCH 2/2] platform/x86/intel/uncore-freq: Replace sprintf() with sysfs_emit() Kaushlendra Kumar
  0 siblings, 2 replies; 5+ messages in thread
From: Kaushlendra Kumar @ 2025-12-30  8:05 UTC (permalink / raw)
  To: srinivas.pandruvada, hansg, ilpo.jarvinen
  Cc: platform-driver-x86, Kaushlendra Kumar

This series replaces unsafe/deprecated string formatting functions in
the Intel uncore frequency driver with their safer alternatives.

Patch 1 replaces sprintf() with sysfs_emit() in sysfs show functions
for proper buffer bounds checking.

Patch 2 replaces sprintf() with snprintf() in device name formatting
to follow kernel best practices.

Kaushlendra Kumar (2):
  platform/x86/intel/uncore-freq: Replace sprintf() with snprintf()
  platform/x86/intel/uncore-freq: Replace sprintf() with sysfs_emit()

 .../uncore-frequency/uncore-frequency-common.c      | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2025-12-30 12:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-30  8:05 [PATCH 0/2] platform/x86/intel/uncore-freq: String handling improvements Kaushlendra Kumar
2025-12-30  8:05 ` [PATCH 1/2] platform/x86/intel/uncore-freq: Replace sprintf() with snprintf() Kaushlendra Kumar
2025-12-30 10:48   ` Ilpo Järvinen
2025-12-30 12:45     ` Kumar, Kaushlendra
2025-12-30  8:05 ` [PATCH 2/2] platform/x86/intel/uncore-freq: Replace sprintf() with sysfs_emit() Kaushlendra Kumar

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