linux/drivers/net/ethernet/sfc
Takashi Iwai 5e892880e1 net: sfc: Use scnprintf() for avoiding potential buffer overflow
Since snprintf() returns the would-be-output size instead of the
actual output size, the succeeding calls may go beyond the given
buffer limit.  Fix it by replacing with scnprintf().

Cc: "David S . Miller" <davem@davemloft.net>
Cc: Edward Cree <ecree@solarflare.com>
Cc: Martin Habets <mhabets@solarflare.com>
Cc: Solarflare linux maintainers <linux-net-drivers@solarflare.com>
Cc: netdev@vger.kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-15 17:06:22 -07:00
..
falcon Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
bitfield.h
ef10_regs.h
ef10_sriov.c sfc: avoid duplicate error handling code in 'efx_ef10_sriov_set_vf_mac()' 2019-12-30 17:52:21 -08:00
ef10_sriov.h
ef10.c sfc: complete the next packet when we receive a timestamp 2020-03-05 14:56:57 -08:00
efx_channels.c sfc: detach from cb_page in efx_copy_channel() 2020-03-09 17:44:05 -07:00
efx_channels.h sfc: add new headers in preparation for code split 2020-01-08 13:28:02 -08:00
efx_common.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-01-28 16:02:33 -08:00
efx_common.h sfc: move yet more functions 2020-01-10 11:24:37 -08:00
efx.c sfc: remove duplicated include from efx.c 2020-01-16 10:06:18 +01:00
efx.h sfc: complete the next packet when we receive a timestamp 2020-03-05 14:56:57 -08:00
enum.h
ethtool_common.c sfc/ethtool_common: Make some function to static 2020-01-13 06:00:43 -08:00
ethtool_common.h sfc: move some ethtool code 2020-01-10 11:24:37 -08:00
ethtool.c sfc: move RPS code 2020-01-10 11:24:37 -08:00
farch_regs.h
farch.c sfc: add new headers in preparation for code split 2020-01-08 13:28:02 -08:00
filter.h
io.h
Kconfig sfc: Remove unnecessary dependencies on I2C 2020-01-02 16:23:18 -08:00
Makefile sfc: move mcdi filtering code 2020-01-27 13:05:43 +01:00
mcdi_filters.c sfc: move mcdi filtering code 2020-01-27 13:05:43 +01:00
mcdi_filters.h sfc: create header for mcdi filtering code 2020-01-27 13:05:43 +01:00
mcdi_functions.c sfc: remove set but not used variable 'nic_data' 2020-01-10 23:15:28 -08:00
mcdi_functions.h sfc: move yet more functions 2020-01-10 11:24:37 -08:00
mcdi_mon.c
mcdi_pcol.h
mcdi_port_common.c sfc: move a couple more functions 2020-01-10 11:24:37 -08:00
mcdi_port_common.h sfc: move a couple more functions 2020-01-10 11:24:37 -08:00
mcdi_port.c sfc: move a couple more functions 2020-01-10 11:24:37 -08:00
mcdi.c net: sfc: Use scnprintf() for avoiding potential buffer overflow 2020-03-15 17:06:22 -07:00
mcdi.h sfc: move various functions 2020-01-10 11:24:37 -08:00
mtd.c
net_driver.h sfc: complete the next packet when we receive a timestamp 2020-03-05 14:56:57 -08:00
nic.c
nic.h sfc: add new headers in preparation for code split 2020-01-08 13:28:02 -08:00
ptp.c sfc: fix timestamp reconstruction at 16-bit rollover points 2020-02-27 12:04:49 -08:00
rx_common.c sfc: move RPS code 2020-01-10 11:24:37 -08:00
rx_common.h sfc: move RPS code 2020-01-10 11:24:37 -08:00
rx.c sfc: move RPS code 2020-01-10 11:24:37 -08:00
selftest.c sfc: refactor selftest work init code 2020-01-10 11:24:37 -08:00
selftest.h sfc: refactor selftest work init code 2020-01-10 11:24:37 -08:00
siena_sriov.c sfc: move channel alloc/removal code 2020-01-08 13:28:03 -08:00
siena_sriov.h
siena.c sfc: move various functions 2020-01-10 11:24:37 -08:00
sriov.c
sriov.h
tx_common.c sfc: complete the next packet when we receive a timestamp 2020-03-05 14:56:57 -08:00
tx_common.h sfc: complete the next packet when we receive a timestamp 2020-03-05 14:56:57 -08:00
tx_tso.c
tx.c sfc: complete the next packet when we receive a timestamp 2020-03-05 14:56:57 -08:00
tx.h
vfdi.h
workarounds.h