Skip to content

Commit

Permalink
Bluetooth: 6lowpan: Do not free skb when packet is dropped
Browse files Browse the repository at this point in the history
If we need to drop the message because of some error in the
compression etc, then do not free the skb as that is done
automatically in other part of networking stack.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Jukka Rissanen authored and Marcel Holtmann committed Dec 19, 2014
1 parent 00c845d commit 004fa5e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/bluetooth/6lowpan.c
Original file line number Diff line number Diff line change
@@ -390,7 +390,6 @@ static int recv_pkt(struct sk_buff *skb, struct net_device *dev,

drop:
dev->stats.rx_dropped++;
kfree_skb(skb);
return NET_RX_DROP;
}

0 comments on commit 004fa5e

Please sign in to comment.