sunvnet: fix a memory leak in vnet_handle_offloads
authorLi RongQing <roy.qing.li@gmail.com>
Fri, 19 Dec 2014 05:19:35 +0000 (13:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Dec 2014 18:19:45 +0000 (13:19 -0500)
commit4f2ff8ef9eab32e6bc01c71bb539fc68d0917f59
tree6736c3b45b18f7eba8f24bbf6a3666dd4f51216e
parentd790be3863b28fd22e0781c1a3ddefcbfd5f7086
sunvnet: fix a memory leak in vnet_handle_offloads

when skb_gso_segment returns error, the original skb should be freed

Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Acked-by: David L Stevens <david.stevens@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunvnet.c