Skip to content

Commit

Permalink
Bluetooth: 6lowpan: Print errors during recv_pkt
Browse files Browse the repository at this point in the history
This makes should make it more clear why a packet is being dropped.

Signed-off-by: Luiz Augusto von Dentz <[email protected]>
Acked-by: Jukka Rissanen <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
Vudentz authored and holtmann committed Apr 12, 2017
1 parent 27ce68a commit da75fdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/bluetooth/6lowpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ static int recv_pkt(struct sk_buff *skb, struct net_device *dev,

ret = iphc_decompress(local_skb, dev, peer);
if (ret < 0) {
BT_DBG("iphc_decompress failed: %d", ret);
kfree_skb(local_skb);
goto drop;
}
Expand All @@ -356,6 +357,7 @@ static int recv_pkt(struct sk_buff *skb, struct net_device *dev,
consume_skb(local_skb);
consume_skb(skb);
} else {
BT_DBG("unknown packet type");
goto drop;
}

Expand Down

0 comments on commit da75fdc

Please sign in to comment.