Re: [PATCH net] ipvlan: fix leak in ipvlan_rcv_frame

2015-11-17 Thread David Miller
From: Sabrina Dubroca Date: Mon, 16 Nov 2015 22:34:26 +0100 > Pass a **skb to ipvlan_rcv_frame so that if skb_share_check returns a > new skb, we actually use it during further processing. > > It's safe to ignore the new skb in the ipvlan_xmit_* functions, because > they

[PATCH net] ipvlan: fix leak in ipvlan_rcv_frame

2015-11-16 Thread Sabrina Dubroca
Pass a **skb to ipvlan_rcv_frame so that if skb_share_check returns a new skb, we actually use it during further processing. It's safe to ignore the new skb in the ipvlan_xmit_* functions, because they call ipvlan_rcv_frame with local == true, so that dev_forward_skb is called and always takes