diff options
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 382119917166..f530b1ca1773 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -1399,7 +1399,7 @@ static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock, | |||
1399 | 1399 | ||
1400 | NETLINK_CB(skb).pid = nlk->pid; | 1400 | NETLINK_CB(skb).pid = nlk->pid; |
1401 | NETLINK_CB(skb).dst_group = dst_group; | 1401 | NETLINK_CB(skb).dst_group = dst_group; |
1402 | memcpy(NETLINK_CREDS(skb), &siocb->scm->creds, sizeof(struct ucred)); | 1402 | NETLINK_CB(skb).creds = siocb->scm->creds; |
1403 | 1403 | ||
1404 | err = -EFAULT; | 1404 | err = -EFAULT; |
1405 | if (memcpy_fromiovec(skb_put(skb, len), msg->msg_iov, len)) { | 1405 | if (memcpy_fromiovec(skb_put(skb, len), msg->msg_iov, len)) { |