diff options
| author | Simon Horman <[email protected]> | 2017-03-08 16:57:08 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-03-10 00:39:58 +0000 |
| commit | 5692dbb56e6012c0755614ee64fe4c221f357e7a (patch) | |
| tree | 15c1fd7c703b0994ccff2ac1c04118f47bd33e66 /net/ipv4/tcp_input.c | |
| parent | nfp: add metadata format bit (diff) | |
| download | kernel-5692dbb56e6012c0755614ee64fe4c221f357e7a.tar.gz kernel-5692dbb56e6012c0755614ee64fe4c221f357e7a.zip | |
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 <[email protected]>
Tested-by: Jakub Kicinski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions
