aboutsummaryrefslogtreecommitdiffstats
path: root/net/ieee802154/raw.c
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
commitada47b5fe13d89735805b566185f4885f5a3f750 (patch)
tree644b88f8a71896307d71438e9b3af49126ffb22b /net/ieee802154/raw.c
parent43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff)
parent3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff)
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
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 }