1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/hisilicon
Xu Panda 80a464d83f net: hns3: use strscpy() to instead of strncpy()
The implementation of strscpy() is more robust and safer.
That's now the recommended way to copy NUL terminated strings.

Signed-off-by: Xu Panda <xu.panda@zte.com.cn>
Signed-off-by: Yang Yang <yang.yang29@zte.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/202212091538591375035@zte.com.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-12-12 13:00:00 -08:00
..
hns hns: use strscpy() to instead of strncpy() 2022-12-12 10:00:55 +00:00
hns3 net: hns3: use strscpy() to instead of strncpy() 2022-12-12 13:00:00 -08:00
hip04_eth.c net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
hisi_femac.c net: hisilicon: Fix potential use-after-free in hisi_femac_rx() 2022-12-06 12:45:11 +01:00
hix5hd2_gmac.c net: hisilicon: Fix potential use-after-free in hix5hd2_rx() 2022-12-06 12:53:31 +01:00
hns_mdio.c net: hns: Fix spelling mistakes in comments. 2022-07-04 11:15:45 +01:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00