diff options
author | Abdul Rahim <abdul.rahim@myyahoo.com> | 2024-10-10 04:35:58 +0530 |
---|---|---|
committer | Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> | 2024-10-10 13:30:46 +0300 |
commit | 8150408bfdb2f9c17970295427cf91470189e6d0 (patch) | |
tree | 169c9ebad3d5c65f3dc4671e1cee2851141ad90d /drivers/platform/x86/intel/bxtwc_tmu.c | |
parent | d12586e1072d92070783c854819a0ca8c82c5439 (diff) | |
download | linux-8150408bfdb2f9c17970295427cf91470189e6d0.tar.gz linux-8150408bfdb2f9c17970295427cf91470189e6d0.tar.bz2 linux-8150408bfdb2f9c17970295427cf91470189e6d0.zip |
asus-laptop: prefer strscpy() over strcpy()
The function strcpy() is depreciated and potentially unsafe. It performs
no bounds checking on the destination buffer. This could result in
linear overflows beyond the end of the buffer, leading to all kinds of
misbehaviors. The safe replacement is strscpy() [1].
this fixes checkpatch warning:
WARNING: Prefer strscpy over strcpy
Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy [1]
Signed-off-by: Abdul Rahim <abdul.rahim@myyahoo.com>
Reviewed-by: Luke D. Jones <luke@ljones.dev>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20241009230558.51892-1-abdul.rahim@myyahoo.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/intel/bxtwc_tmu.c')
0 files changed, 0 insertions, 0 deletions