Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67064
b: refs/heads/master
c: 7ee015e
h: refs/heads/master
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Oct 11, 2007
1 parent 23dcd25 commit 1e59d71
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b71535f357a2e5d013a44a06b0c26a6a8d8fb5b
refs/heads/master: 7ee015e0fa3c856416e9477aac4b850ec6f09017
2 changes: 1 addition & 1 deletion trunk/include/linux/netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ struct sock *netlink_getsockbyfilp(struct file *filp);
int netlink_attachskb(struct sock *sk, struct sk_buff *skb, int nonblock,
long timeo, struct sock *ssk);
void netlink_detachskb(struct sock *sk, struct sk_buff *skb);
int netlink_sendskb(struct sock *sk, struct sk_buff *skb, int protocol);
int netlink_sendskb(struct sock *sk, struct sk_buff *skb);

/*
* skb should fit one page. This choice is good for headerless malloc.
Expand Down
5 changes: 2 additions & 3 deletions trunk/ipc/mqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,7 @@ static void __do_notify(struct mqueue_inode_info *info)
break;
case SIGEV_THREAD:
set_cookie(info->notify_cookie, NOTIFY_WOKENUP);
netlink_sendskb(info->notify_sock,
info->notify_cookie, 0);
netlink_sendskb(info->notify_sock, info->notify_cookie);
break;
}
/* after notification unregisters process */
Expand Down Expand Up @@ -568,7 +567,7 @@ static void remove_notification(struct mqueue_inode_info *info)
if (info->notify_owner != NULL &&
info->notify.sigev_notify == SIGEV_THREAD) {
set_cookie(info->notify_cookie, NOTIFY_REMOVED);
netlink_sendskb(info->notify_sock, info->notify_cookie, 0);
netlink_sendskb(info->notify_sock, info->notify_cookie);
}
put_pid(info->notify_owner);
info->notify_owner = NULL;
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/netlink/af_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ int netlink_attachskb(struct sock *sk, struct sk_buff *skb, int nonblock,
return 0;
}

int netlink_sendskb(struct sock *sk, struct sk_buff *skb, int protocol)
int netlink_sendskb(struct sock *sk, struct sk_buff *skb)
{
int len = skb->len;

Expand Down Expand Up @@ -853,7 +853,7 @@ int netlink_unicast(struct sock *ssk, struct sk_buff *skb, u32 pid, int nonblock
if (err)
return err;

return netlink_sendskb(sk, skb, ssk->sk_protocol);
return netlink_sendskb(sk, skb);
}

int netlink_has_listeners(struct sock *sk, unsigned int group)
Expand Down

0 comments on commit 1e59d71

Please sign in to comment.