OpenCloudOS-Kernel/drivers/net/ipvlan
Sabrina Dubroca cf554ada0b ipvlan: fix leak in ipvlan_rcv_frame
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 ownership of the skb.

Fixes: 2ad7bf3638 ("ipvlan: Initial check-in of the IPVLAN driver.")
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-11-17 14:39:28 -05:00
..
Makefile
ipvlan.h ipvlan: use rcu_deference_bh() in ipvlan_queue_xmit() 2015-07-15 21:33:40 -07:00
ipvlan_core.c ipvlan: fix leak in ipvlan_rcv_frame 2015-11-17 14:39:28 -05:00
ipvlan_main.c net: ipvlan: convert to using IFF_NO_QUEUE 2015-08-18 11:55:06 -07:00