aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/mips/kernel/vpe.c
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-04-25 09:46:48 +0200
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2025-04-27 09:47:52 +0200
commit3b3704261e851e25983860e4c352f1f73786f4ab (patch)
treebe3273f4b92e15efdaacfdac7dc96a9a6df98b75 /arch/mips/kernel/vpe.c
parentMIPS: BCM63XX: Replace strcpy() with strscpy() in board_prom_init() (diff)
downloadwireguard-linux-3b3704261e851e25983860e4c352f1f73786f4ab.tar.xz
wireguard-linux-3b3704261e851e25983860e4c352f1f73786f4ab.zip
MIPS: Replace strcpy() with strscpy() in vpe_elfload()
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: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to '')
-rw-r--r--arch/mips/kernel/vpe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c
index 737d0d4fdcd3..2b67c44adab9 100644
--- a/arch/mips/kernel/vpe.c
+++ b/arch/mips/kernel/vpe.c
@@ -22,6 +22,7 @@
#include <linux/vmalloc.h>
#include <linux/elf.h>
#include <linux/seq_file.h>
+#include <linux/string.h>
#include <linux/syscalls.h>
#include <linux/moduleloader.h>
#include <linux/interrupt.h>
@@ -582,7 +583,7 @@ static int vpe_elfload(struct vpe *v)
struct module mod; /* so we can re-use the relocations code */
memset(&mod, 0, sizeof(struct module));
- strcpy(mod.name, "VPE loader");
+ strscpy(mod.name, "VPE loader");
hdr = (Elf_Ehdr *) v->pbuffer;
len = v->plen;