]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: gadget: udc: Use safer strscpy() instead of strcpy()
authorAi Chao <aichao@kylinos.cn>
Tue, 10 Mar 2026 09:44:33 +0000 (17:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2026 14:39:04 +0000 (15:39 +0100)
commit9b4051a47da5050ba349b630494cf5ee3d5aa1e1
treef71eff4ab7dcb0c5458038ef5388fca99bb24d9b
parent2131540de4adc8eb7960ebea9915694ec0ce430d
usb: gadget: udc: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Ai Chao <aichao@kylinos.cn>
Link: https://patch.msgid.link/20260310094434.3639602-6-aichao@kylinos.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/snps_udc_core.c