X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fnet%2Floopback.c;h=d0893e4c93300d081a27a40b7401e2dcfc1af438;hb=d6e066a9d33b2a09590153505fc9abd8fe9ba624;hp=4ce9e5f2c069876a0fd4ec6d1446c25408411a33;hpb=1f2d9c9dd8276b1c19ef80e6d8059fe47506d4c3;p=pandora-kernel.git diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index 4ce9e5f2c069..d0893e4c9330 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c @@ -78,6 +78,11 @@ static netdev_tx_t loopback_xmit(struct sk_buff *skb, skb_orphan(skb); + /* Before queueing this packet to netif_rx(), + * make sure dst is refcounted. + */ + skb_dst_force(skb); + skb->protocol = eth_type_trans(skb, dev); /* it's OK to use per_cpu_ptr() because BHs are off */