]> git.baikalelectronics.ru Git - kernel.git/commit
8021q: fix a potential memory leak
authorLi RongQing <roy.qing.li@gmail.com>
Wed, 18 Jun 2014 05:46:02 +0000 (13:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Jun 2014 22:12:13 +0000 (15:12 -0700)
commit36c188910aacb415f505c6abcad1ce14ce1f7942
tree090abcbf5857c8c9670d58555a505bcb32ce73d1
parent077bba42fb3cc6022986ca7e55b47d8da5ee18e8
8021q: fix a potential memory leak

skb_cow called in vlan_reorder_header does not free the skb when it failed,
and vlan_reorder_header returns NULL to reset original skb when it is called
in vlan_untag, lead to a memory leak.

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_core.c