Hannes Frederic Sowa
3da812d860
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>
2013-09-30 22:04:09 -07:00
..
2013-09-13 11:58:48 +02:00
2013-08-31 22:30:00 -04:00
2013-09-30 15:06:19 -04:00
2013-09-04 14:14:53 -04:00
2013-09-11 17:04:09 -04:00
2013-09-05 12:44:31 -04:00
2013-02-18 14:53:08 -05:00
2013-08-15 14:37:46 -07:00
2013-09-05 12:44:31 -04:00
2013-05-28 23:49:07 -07:00
2012-11-15 17:39:24 -05:00
2013-09-11 15:52:27 -04:00
2013-09-11 16:16:29 -04:00
2013-09-05 14:58:52 -04:00
2013-03-08 12:29:22 -05:00
2013-01-23 13:44:01 -05:00
2013-01-08 17:56:10 -08:00
2013-09-11 16:09:59 -04:00
2013-03-07 16:33:10 -05:00
2013-09-30 22:04:09 -07:00
2013-04-29 13:54:36 -04:00
2013-08-08 22:24:59 -07:00
2013-08-31 22:30:01 -04:00
2012-11-15 17:39:24 -05:00
2013-09-24 11:43:05 -04:00
2013-09-16 21:36:12 -04:00
2013-09-04 00:27:26 -04:00
2013-09-05 12:44:31 -04:00
2013-01-31 13:53:08 -05:00
2013-03-26 12:27:19 -04:00
2013-05-25 21:07:49 -07:00
2013-09-04 14:53:21 -04:00
2013-05-28 23:49:07 -07:00
2013-09-11 17:04:09 -04:00
2013-05-23 11:58:55 +02:00
2013-08-31 22:30:00 -04:00
2013-07-03 17:42:05 -07:00
2013-08-08 22:24:59 -07:00
2012-11-15 17:39:24 -05:00
2013-09-24 10:15:49 -04:00
2013-08-20 00:11:24 -07:00
2013-09-05 12:44:31 -04:00
2013-09-28 15:56:15 -04:00
2013-08-28 00:28:04 +02:00
2013-06-13 02:36:09 -07:00
2013-09-05 14:58:52 -04:00
2012-11-15 17:39:51 -05:00
2012-05-16 01:01:03 -04:00
2013-05-11 16:26:38 -07:00
2013-08-31 22:30:01 -04:00
2013-09-24 10:15:49 -04:00
2013-05-11 16:26:38 -07:00
2010-03-25 16:00:49 +01:00
2012-02-23 16:50:45 -05:00
2008-01-28 14:53:52 -08:00
2007-10-10 16:55:54 -07:00
2013-03-06 07:02:45 +01:00
2013-08-26 12:40:53 +02:00
2013-05-11 17:40:15 -07:00
2013-08-14 13:07:12 +02:00
2013-02-27 19:10:24 -08:00