diff options
| author | Roland Dreier <rolandd@cisco.com> | 2005-10-28 18:50:51 -0400 |
|---|---|---|
| committer | Roland Dreier <rolandd@cisco.com> | 2005-10-28 18:50:51 -0400 |
| commit | a4da0628efd788eb199dd9df225e296035ec2539 (patch) | |
| tree | 1e611030c993e1480dc2f07f26976d2d33002b0d /net/netlink/af_netlink.c | |
| parent | 70a30e16a8a9d22396a4d1e96af86e43594df584 (diff) | |
| parent | 20731945ae743034353a88c307920d1f16cf8ac8 (diff) | |
Merge master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
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 | ||
