mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
Bluetooth: 6lowpan: Print errors during recv_pkt
This makes should make it more clear why a packet is being dropped. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
parent
27ce68a37b
commit
da75fdc6bd
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue