summaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorSimon Horman <simon.horman@netronome.com>2017-03-08 19:57:08 +0300
committerDavid S. Miller <davem@davemloft.net>2017-03-10 03:39:58 +0300
commit5692dbb56e6012c0755614ee64fe4c221f357e7a (patch)
tree15c1fd7c703b0994ccff2ac1c04118f47bd33e66 /net/ipv4/tcp_input.c
parentb9dcf88a47ebab2743a0c627a95126c4cb3e9883 (diff)
downloadlinux-5692dbb56e6012c0755614ee64fe4c221f357e7a.tar.xz
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>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions