Commit 4f2ff8ef authored by Li RongQing's avatar Li RongQing Committed by David S. Miller
Browse files

sunvnet: fix a memory leak in vnet_handle_offloads

when skb_gso_segment returns error, the original skb should be freed
Signed-off-by: default avatarLi RongQing <>
Acked-by: default avatarDavid L Stevens <>
Signed-off-by: default avatarDavid S. Miller <>
parent d790be38
......@@ -1201,6 +1201,7 @@ static int vnet_handle_offloads(struct vnet_port *port, struct sk_buff *skb)
segs = skb_gso_segment(skb, dev->features & ~NETIF_F_TSO);
if (IS_ERR(segs)) {
return NETDEV_TX_OK;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment