diff options
author | Martin Townsend <mtownsend1973@gmail.com> | 2014-10-23 15:40:54 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-10-27 15:51:15 +0100 |
commit | 04dfd7386ab7a0f016bbcf30b3a5051650242120 (patch) | |
tree | e522b9e25bc86a20a3530d5e97998548044e1da1 /net/bluetooth/6lowpan.c | |
parent | f8b361768ea2eaf9b21dfbe7388958ec31798c8b (diff) | |
download | blackbird-obmc-linux-04dfd7386ab7a0f016bbcf30b3a5051650242120.tar.gz blackbird-obmc-linux-04dfd7386ab7a0f016bbcf30b3a5051650242120.zip |
6lowpan: fix process_data return values
As process_data now returns just error codes fix up the calls to this
function to only drop the skb if an error code is returned.
Signed-off-by: Martin Townsend <mtownsend1973@gmail.com>
Acked-by: Alexander Aring <alex.aring@gmail.com>
Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/6lowpan.c')
-rw-r--r-- | net/bluetooth/6lowpan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index 45d9a9fef634..94bbb6611bc5 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c @@ -347,7 +347,7 @@ static int recv_pkt(struct sk_buff *skb, struct net_device *dev, goto drop; ret = process_data(local_skb, dev, chan); - if (ret != NET_RX_SUCCESS) + if (ret < 0) goto drop; local_skb->protocol = htons(ETH_P_IPV6); |