aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/bluetooth/6lowpan.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
index dc23c55f1ab6..3f20dce9d671 100644
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -614,17 +614,13 @@ static netdev_tx_t bt_xmit(struct sk_buff *skb, struct net_device *netdev)
614 int err = 0; 614 int err = 0;
615 bdaddr_t addr; 615 bdaddr_t addr;
616 u8 addr_type; 616 u8 addr_type;
617 struct sk_buff *tmpskb;
618 617
619 /* We must take a copy of the skb before we modify/replace the ipv6 618 /* We must take a copy of the skb before we modify/replace the ipv6
620 * header as the header could be used elsewhere 619 * header as the header could be used elsewhere
621 */ 620 */
622 tmpskb = skb_unshare(skb, GFP_ATOMIC); 621 skb = skb_unshare(skb, GFP_ATOMIC);
623 if (!tmpskb) { 622 if (!skb)
624 kfree_skb(skb);
625 return NET_XMIT_DROP; 623 return NET_XMIT_DROP;
626 }
627 skb = tmpskb;
628 624
629 /* Return values from setup_header() 625 /* Return values from setup_header()
630 * <0 - error, packet is dropped 626 * <0 - error, packet is dropped