linux-stable/drivers/net/ethernet/freescale
Jason Wang 995786ba0d dpaa2-eth: Replace strlcpy with strscpy
The strlcpy should not be used because it doesn't limit the source
length. As linus says, it's a completely useless function if you
can't implicitly trust the source string - but that is almost always
why people think they should use it! All in all the BSD function
will lead some potential bugs.

But the strscpy doesn't require reading memory from the src string
beyond the specified "count" bytes, and since the return value is
easier to error-check than strlcpy()'s. In addition, the implementation
is robust to the string changing out from underneath it, unlike the
current strlcpy() implementation.

Thus, We prefer using strscpy instead of strlcpy.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-08-31 11:30:53 +01:00
..
dpaa ethtool: extend coalesce setting uAPI with CQE mode 2021-08-24 07:38:29 -07:00
dpaa2 dpaa2-eth: Replace strlcpy with strscpy 2021-08-31 11:30:53 +01:00
enetc ethtool: extend coalesce setting uAPI with CQE mode 2021-08-24 07:38:29 -07:00
fman fsl/fman: Add fibre support 2021-07-20 07:16:45 -07:00
fs_enet dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
fec.h net: fec: add WoL support for i.MX8MQ 2021-08-13 16:10:31 -07:00
fec_main.c ethtool: extend coalesce setting uAPI with CQE mode 2021-08-24 07:38:29 -07:00
fec_mpc52xx.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
fec_mpc52xx.h
fec_mpc52xx_phy.c
fec_ptp.c net: fec_ptp: fix issue caused by refactor the fec_devtype 2021-06-16 12:39:03 -07:00
fsl_pq_mdio.c net: freescale: convert comma to semicolon 2020-12-09 16:23:08 -08:00
gianfar.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
gianfar.h net: gianfar: Implement rx_missed_errors counter 2021-06-17 11:39:48 -07:00
gianfar_ethtool.c ethtool: extend coalesce setting uAPI with CQE mode 2021-08-24 07:38:29 -07:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile net: enetc: fix link error again 2021-04-22 13:23:07 -07:00
ucc_geth.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
ucc_geth.h ethernet: ucc_geth: simplify rx/tx allocations 2021-01-21 12:19:56 -08:00
ucc_geth_ethtool.c
xgmac_mdio.c net: mdiobus: withdraw fwnode_mdbiobus_register 2021-06-25 11:46:29 -07:00