Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpuidle: psci: Replace deprecated strcpy in psci_idle_init_cpu

strcpy() is deprecated; use strscpy() instead.

Link: https://github.com/KSPP/linux/issues/88
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Thorsten Blum and committed by
Ulf Hansson
e938ef83 47c7b3c2

+2 -2
+2 -2
drivers/cpuidle/cpuidle-psci.c
··· 382 382 drv->states[0].exit_latency = 1; 383 383 drv->states[0].target_residency = 1; 384 384 drv->states[0].power_usage = UINT_MAX; 385 - strcpy(drv->states[0].name, "WFI"); 386 - strcpy(drv->states[0].desc, "ARM WFI"); 385 + strscpy(drv->states[0].name, "WFI"); 386 + strscpy(drv->states[0].desc, "ARM WFI"); 387 387 388 388 /* 389 389 * If no DT idle states are detected (ret == 0) let the driver