OpenCloudOS-Kernel/drivers/net/ethernet/freescale/dpaa2
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
..
Kconfig staging: dpaa2-switch: move the driver out of staging 2021-03-10 13:30:36 -08:00
Makefile dpaa2-switch: integrate the MAC endpoint support 2021-08-04 09:53:34 +01:00
dpaa2-eth-dcb.c dpaa2-eth: add a dpaa2_eth_ prefix to all functions in dpaa2-eth-dcb.c 2020-09-01 13:23:47 -07:00
dpaa2-eth-debugfs.c dpaa2-eth: name the debugfs directory after the DPNI object 2021-05-21 14:05:04 -07:00
dpaa2-eth-debugfs.h dpaa2: no need to check return value of debugfs_create functions 2019-08-10 15:25:48 -07:00
dpaa2-eth-devlink.c devlink: Set device as early as possible 2021-08-09 10:21:40 +01:00
dpaa2-eth-trace.h dpaa2-eth: fix recursive header include 2020-06-25 16:03:39 -07:00
dpaa2-eth.c bus: fsl-mc: extend fsl_mc_get_endpoint() to pass interface ID 2021-08-04 09:53:34 +01:00
dpaa2-eth.h dpaa2-eth: export the rx copybreak value as an ethtool tunable 2021-04-02 14:25:47 -07:00
dpaa2-ethtool.c dpaa2-eth: Replace strlcpy with strscpy 2021-08-31 11:30:53 +01:00
dpaa2-mac.c net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver 2021-06-11 13:08:53 -07:00
dpaa2-mac.h net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver 2021-06-11 13:08:53 -07:00
dpaa2-ptp.c dpaa2-eth: define a global ptp_qoriq structure pointer 2020-09-18 14:32:48 -07:00
dpaa2-ptp.h dpaa2-eth: define a global ptp_qoriq structure pointer 2020-09-18 14:32:48 -07:00
dpaa2-switch-ethtool.c dpaa2-switch: export MAC statistics in ethtool 2021-08-04 09:53:34 +01:00
dpaa2-switch-flower.c dpaa2-switch: offload shared block mirror filters when binding to a port 2021-07-29 21:34:45 +01:00
dpaa2-switch.c net: dpaa2-switch: call dpaa2_switch_port_disconnect_mac on probe error path 2021-08-20 14:34:49 +01:00
dpaa2-switch.h dpaa2-switch: integrate the MAC endpoint support 2021-08-04 09:53:34 +01:00
dpkg.h dpaa2-eth: fixup kdoc warnings 2021-03-16 15:29:49 -07:00
dpmac-cmd.h dpaa2-eth: fix a build warning in dpmac.c 2020-09-18 14:36:00 -07:00
dpmac.c dpaa2-eth: add ethtool MAC counters 2019-11-07 15:31:53 -08:00
dpmac.h dpaa2-eth: fixup kdoc warnings 2021-03-16 15:29:49 -07:00
dpni-cmd.h dpaa2-eth: add support for Rx VLAN filtering 2021-01-13 19:20:55 -08:00
dpni.c dpaa2-eth: fixup kdoc warnings 2021-03-16 15:29:49 -07:00
dpni.h dpaa2-eth: fixup kdoc warnings 2021-03-16 15:29:49 -07:00
dprtc-cmd.h dpaa2-ptp: add external trigger event support 2019-12-16 15:56:41 -08:00
dprtc.c dpaa2-ptp: add interrupt support 2019-06-15 13:43:06 -07:00
dprtc.h dpaa2-eth: fixup kdoc warnings 2021-03-16 15:29:49 -07:00
dpsw-cmd.h dpaa2-switch: add API for setting up mirroring 2021-07-29 21:34:45 +01:00
dpsw.c dpaa2-switch: add API for setting up mirroring 2021-07-29 21:34:45 +01:00
dpsw.h dpaa2-switch: integrate the MAC endpoint support 2021-08-04 09:53:34 +01:00