summaryrefslogtreecommitdiff
path: root/drivers/cdx/controller
diff options
context:
space:
mode:
authorSukrut Heroorkar <hsukrut3@gmail.com>2025-07-16 14:35:43 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2025-07-16 21:14:00 +0200
commitcf115ebad30f08c96f59a39e6a96ef26a146d900 (patch)
tree4e5afe1469c8831ed4eaa4e889bcbdb11c7571e9 /drivers/cdx/controller
parent347e9f5043c89695b01e66b3ed111755afcf1911 (diff)
ACPI: TAD: Replace sprintf() with sysfs_emit()
Replace sprintf() in *_show() callbacks of sysfs attributes with sysfs_emit(). While the current implementation works, sysfs_emit() helps to prevent potential buffer overflows and aligns with kernel documentation Documentation/filesystems/sysfs.rst. Tested on an x86_64 system with acpi_tad built as a module: - Inserted patched acpi_tad.ko successfully - Verified /sys/devices/platform/ACPI000E:00/time and /caps are accessible - Confirmed correct output from 'cat' with no dmesg errors Signed-off-by: Sukrut Heroorkar <hsukrut3@gmail.com> Link: https://patch.msgid.link/20250716123543.495628-1-hsukrut3@gmail.com [ rjw: Changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cdx/controller')
0 files changed, 0 insertions, 0 deletions