]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cpufreq: Replace deprecated strcpy() in cpufreq_unregister_governor()
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 17 Oct 2025 15:33:54 +0000 (17:33 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 20 Oct 2025 19:25:36 +0000 (21:25 +0200)
commitace04717749d20e34dac9f78c5ac772168232b67
tree5e72cc68b845ad2d0050609a3ffe2566445ba8a8
parent5313ec4a215a0c4af8fd927b103d31c2c93e961f
cpufreq: Replace deprecated strcpy() in cpufreq_unregister_governor()

strcpy() is deprecated; assign the NUL terminator directly instead.

Link: https://github.com/KSPP/linux/issues/88
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
[ rjw: Subject tweaks ]
Link: https://patch.msgid.link/20251017153354.82009-2-thorsten.blum@linux.dev
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq.c