summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/moxa
diff options
context:
space:
mode:
authorHannes Frederic Sowa <hannes@stressinduktion.org>2013-09-29 05:40:50 +0200
committerDavid S. Miller <davem@davemloft.net>2013-09-30 22:04:09 -0700
commit3da812d860755925da890e8c713f2d2e2d7b1bae (patch)
tree071f33a1289ad20fda51b816d3df6703e37d1866 /drivers/net/ethernet/moxa
parente58f6f4fb4eada7867014bfaec898f03afbce5c2 (diff)
downloadblackbird-op-linux-3da812d860755925da890e8c713f2d2e2d7b1bae.tar.gz
blackbird-op-linux-3da812d860755925da890e8c713f2d2e2d7b1bae.zip
ipv6: gre: correct calculation of max_headroom
gre_hlen already accounts for sizeof(struct ipv6_hdr) + gre header, so initialize max_headroom to zero. Otherwise the if (encap_limit >= 0) { max_headroom += 8; mtu -= 8; } increments an uninitialized variable before max_headroom was reset. Found with coverity: 728539 Cc: Dmitry Kozlov <xeb@mail.ru> Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/moxa')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud