aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee802154/raw.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ieee802154/raw.c')
-rw-r--r--net/ieee802154/raw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ieee802154/raw.c b/net/ieee802154/raw.c
index 30e74eee07d6..10970ca85748 100644
--- a/net/ieee802154/raw.c
+++ b/net/ieee802154/raw.c
@@ -25,6 +25,7 @@
25#include <linux/module.h> 25#include <linux/module.h>
26#include <linux/if_arp.h> 26#include <linux/if_arp.h>
27#include <linux/list.h> 27#include <linux/list.h>
28#include <linux/slab.h>
28#include <net/sock.h> 29#include <net/sock.h>
29#include <net/af_ieee802154.h> 30#include <net/af_ieee802154.h>
30 31
@@ -191,7 +192,7 @@ static int raw_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
191 if (err) 192 if (err)
192 goto done; 193 goto done;
193 194
194 sock_recv_timestamp(msg, sk, skb); 195 sock_recv_ts_and_drops(msg, sk, skb);
195 196
196 if (flags & MSG_TRUNC) 197 if (flags & MSG_TRUNC)
197 copied = skb->len; 198 copied = skb->len;
@@ -206,7 +207,6 @@ out:
206static int raw_rcv_skb(struct sock *sk, struct sk_buff *skb) 207static int raw_rcv_skb(struct sock *sk, struct sk_buff *skb)
207{ 208{
208 if (sock_queue_rcv_skb(sk, skb) < 0) { 209 if (sock_queue_rcv_skb(sk, skb) < 0) {
209 atomic_inc(&sk->sk_drops);
210 kfree_skb(skb); 210 kfree_skb(skb);
211 return NET_RX_DROP; 211 return NET_RX_DROP;
212 } 212 }