diff options
author | Alexander Aring <alex.aring@gmail.com> | 2015-09-02 21:05:42 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-09-17 14:20:04 +0300 |
commit | 776857a87ccf1ae3095d9e16fbc8a0f9d1daac7e (patch) | |
tree | 1d55904b7e4994c45db03fe5c7b788b93726d5de /net/ieee802154/6lowpan | |
parent | 187625e18498ff0f3738a059778a8578171f06c8 (diff) | |
download | linux-776857a87ccf1ae3095d9e16fbc8a0f9d1daac7e.tar.xz |
ieee802154: 6lowpan: fix drop return value
This patch changes the return value of lowpan packet receive handler to
the correct NET_RX_DROP instead RX_DROP.
This issue was detected by sparse and reported from Marcel:
net/ieee802154/6lowpan/rx.c:329:32: expected int
net/ieee802154/6lowpan/rx.c:329:32: got restricted lowpan_rx_result ...
Reported-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154/6lowpan')
-rw-r--r-- | net/ieee802154/6lowpan/rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee802154/6lowpan/rx.c b/net/ieee802154/6lowpan/rx.c index 856052bf230b..3c319803234d 100644 --- a/net/ieee802154/6lowpan/rx.c +++ b/net/ieee802154/6lowpan/rx.c @@ -326,7 +326,7 @@ static int lowpan_rcv(struct sk_buff *skb, struct net_device *wdev, lowpan_is_iphc(*skb_network_header(skb))) { skb = skb_unshare(skb, GFP_ATOMIC); if (!skb) - return RX_DROP; + return NET_RX_DROP; } return lowpan_invoke_rx_handlers(skb); |