linux/drivers/net/ethernet/netronome/nfp/nfpcore
Simon Horman 5692dbb56e nfp: prevent theoretical buffer overrun in nfp_eth_read_ports
Prevent theoretical buffer overrun by returning an error if
the number of entries returned by the firmware does not match those
present.

Also use a common handling error path.

Found by inspection.

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Tested-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-03-09 16:39:58 -08:00
..
nfp6000
crc32.h
nfp6000_pcie.c nfp: Use PCI_DEVICE_ID_NETRONOME_NFP* defines 2017-02-17 15:11:34 -05:00
nfp6000_pcie.h
nfp_arm.h
nfp_cpp.h nfp: Use PCI_DEVICE_ID_NETRONOME_NFP* defines 2017-02-17 15:11:34 -05:00
nfp_cppcore.c nfp: add support for service processor access 2017-02-10 15:52:26 -05:00
nfp_cpplib.c
nfp_hwinfo.c nfp: add hwinfo support 2017-02-10 15:52:25 -05:00
nfp_mip.c nfp: add MIP reading support 2017-02-10 15:52:26 -05:00
nfp_nffw.c nfp: add support for reading nffw info 2017-02-10 15:52:25 -05:00
nfp_nffw.h nfp: add rtsym support 2017-02-10 15:52:26 -05:00
nfp_nsp_eth.c nfp: prevent theoretical buffer overrun in nfp_eth_read_ports 2017-03-09 16:39:58 -08:00
nfp_nsp_eth.h nfp: implement .ndo_get_phys_port_name() 2017-03-09 16:39:58 -08:00
nfp_nsp.c nfp: report NSP ABI version in ethtool FW version 2017-02-20 11:18:49 -05:00
nfp_resource.c
nfp_rtsym.c nfp: return nfp_rtsym_read_le() errors correctly 2017-02-20 11:18:49 -05:00
nfp_target.c
nfp.h nfp: add very basic access to NSP logs 2017-02-20 11:18:49 -05:00