]> git.baikalelectronics.ru Git - kernel.git/commit
gre: fix a possible skb leak
authorEric Dumazet <edumazet@google.com>
Mon, 24 Jun 2013 13:26:00 +0000 (06:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jun 2013 23:07:44 +0000 (16:07 -0700)
commite70d4867a64af4cb9c6edb7e17694253899c21bf
treed78794e12fb4ac0005f019e6a51e797230d38970
parenta3b5aab1283ca6d19b4047abc012815989bc3e70
gre: fix a possible skb leak

commit 92b5184559d8 ("v4 GRE: Add TCP segmentation offload for GRE")
added a possible skb leak, because it frees only the head of segment
list, in case a skb_linearize() call fails.

This patch adds a kfree_skb_list() helper to fix the bug.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Pravin B Shelar <pshelar@nicira.com>
Cc: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/skbuff.c
net/ipv4/gre.c