diff options
| author | Ruslan Vagner <rusya92266@gmail.com> | 2026-09-15 05:56:13 -0700 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-16 14:42:22 +0200 |
| commit | 68a385dbe05fd8da69ec8a7753591fd653f97d89 (patch) | |
| tree | f8048cc556180e65c068d56c2345e7059ea6f1b4 /include/linux/panic.h | |
| parent | fd73f4a6659897191fa0d40695fe370925dd3780 (diff) | |
ACPI: sysfs: use strscpy() instead of strcpy()
strcpy() is deprecated in the kernel, so use strscpy() with the
compile-time known size of the trace_method_name buffer instead
of it.
The existing length check already rejects overlong input, so
the behavior is unchanged.
Signed-off-by: Ruslan Vagner <rusya92266@gmail.com>
[ rjw: Changelog edits ]
Link: https://patch.msgid.link/CAF9RqJ4ip_egVwRKnwn3=X-Qxuwz0u_9pNrgfujBw8RSf2DTPQ@mail.gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/panic.h')
0 files changed, 0 insertions, 0 deletions
