aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee802154/dgram.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ieee802154/dgram.c')
-rw-r--r--net/ieee802154/dgram.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ieee802154/dgram.c b/net/ieee802154/dgram.c
index a413b1bf4465..1a3334c2609a 100644
--- a/net/ieee802154/dgram.c
+++ b/net/ieee802154/dgram.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#include <net/ieee802154.h> 31#include <net/ieee802154.h>
@@ -303,7 +304,7 @@ static int dgram_recvmsg(struct kiocb *iocb, struct sock *sk,
303 if (err) 304 if (err)
304 goto done; 305 goto done;
305 306
306 sock_recv_timestamp(msg, sk, skb); 307 sock_recv_ts_and_drops(msg, sk, skb);
307 308
308 if (flags & MSG_TRUNC) 309 if (flags & MSG_TRUNC)
309 copied = skb->len; 310 copied = skb->len;
@@ -318,7 +319,6 @@ out:
318static int dgram_rcv_skb(struct sock *sk, struct sk_buff *skb) 319static int dgram_rcv_skb(struct sock *sk, struct sk_buff *skb)
319{ 320{
320 if (sock_queue_rcv_skb(sk, skb) < 0) { 321 if (sock_queue_rcv_skb(sk, skb) < 0) {
321 atomic_inc(&sk->sk_drops);
322 kfree_skb(skb); 322 kfree_skb(skb);
323 return NET_RX_DROP; 323 return NET_RX_DROP;
324 } 324 }