diff options
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r-- | net/netlink/af_netlink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index c48b0f49f003..5890210d7730 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -1242,6 +1242,9 @@ static int netlink_recvmsg(struct kiocb *kiocb, struct socket *sock, | |||
1242 | 1242 | ||
1243 | scm_recv(sock, msg, siocb->scm, flags); | 1243 | scm_recv(sock, msg, siocb->scm, flags); |
1244 | 1244 | ||
1245 | if (flags & MSG_TRUNC) | ||
1246 | copied = skb->len; | ||
1247 | |||
1245 | out: | 1248 | out: |
1246 | netlink_rcv_wake(sk); | 1249 | netlink_rcv_wake(sk); |
1247 | return err ? : copied; | 1250 | return err ? : copied; |