diff options
Diffstat (limited to 'net/netlink/af_netlink.c')
| -rw-r--r-- | net/netlink/af_netlink.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 678c3f2c0d0b..5ca283537bc6 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
| @@ -740,11 +740,8 @@ int netlink_attachskb(struct sock *sk, struct sk_buff *skb, int nonblock, long t | |||
| 740 | 740 | ||
| 741 | int netlink_sendskb(struct sock *sk, struct sk_buff *skb, int protocol) | 741 | int netlink_sendskb(struct sock *sk, struct sk_buff *skb, int protocol) |
| 742 | { | 742 | { |
| 743 | struct netlink_sock *nlk; | ||
| 744 | int len = skb->len; | 743 | int len = skb->len; |
| 745 | 744 | ||
| 746 | nlk = nlk_sk(sk); | ||
| 747 | |||
| 748 | skb_queue_tail(&sk->sk_receive_queue, skb); | 745 | skb_queue_tail(&sk->sk_receive_queue, skb); |
| 749 | sk->sk_data_ready(sk, len); | 746 | sk->sk_data_ready(sk, len); |
| 750 | sock_put(sk); | 747 | sock_put(sk); |
| @@ -827,7 +824,7 @@ struct netlink_broadcast_data { | |||
| 827 | int failure; | 824 | int failure; |
| 828 | int congested; | 825 | int congested; |
| 829 | int delivered; | 826 | int delivered; |
| 830 | unsigned int allocation; | 827 | gfp_t allocation; |
| 831 | struct sk_buff *skb, *skb2; | 828 | struct sk_buff *skb, *skb2; |
| 832 | }; | 829 | }; |
| 833 | 830 | ||
