Currently it is up to the functions below lowpan_rcv to free the skb on error conditions. This patch now removes all the UAPI error codes and process data now returns -1 if there is a problem. In this scenario lowpan_rcv will free the skb and return NET_RX_DROP. This also fixes the problem where NET_RX_SUCCESS is returned on error Martin Townsend (2): Remove dev parameter from skb_delivery_cb in 6lowpan. Change lowpan_rcv so skb is freed within function and fix return values. include/net/6lowpan.h | 4 ++-- net/6lowpan/iphc.c | 37 ++++++++++++++++++------------------ net/bluetooth/6lowpan.c | 21 ++++++++++----------- net/ieee802154/6lowpan_rtnl.c | 44 +++++++++++++++++++++---------------------- 4 files changed, 52 insertions(+), 54 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html