Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102991
b: refs/heads/master
c: 44ccff1
h: refs/heads/master
i:
  102989: 4d15ab4
  102987: 2c06327
  102983: e621f63
  102975: 447ad72
v: v3
  • Loading branch information
David S. Miller committed Jun 17, 2008
1 parent c9fcf0d commit 5373d4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: 7b66767f969edcbdd573aca8063beee7534d242b
refs/heads/master: 44ccff1f539c8c5bbfc1eacd41cb9ef65022a4ca
6 changes: 1 addition & 5 deletions trunk/net/rose/af_rose.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,13 +566,11 @@ static struct sock *rose_make_new(struct sock *osk)
#endif

sk->sk_type = osk->sk_type;
sk->sk_socket = osk->sk_socket;
sk->sk_priority = osk->sk_priority;
sk->sk_protocol = osk->sk_protocol;
sk->sk_rcvbuf = osk->sk_rcvbuf;
sk->sk_sndbuf = osk->sk_sndbuf;
sk->sk_state = TCP_ESTABLISHED;
sk->sk_sleep = osk->sk_sleep;
sock_copy_flags(sk, osk);

init_timer(&rose->timer);
Expand Down Expand Up @@ -924,14 +922,12 @@ static int rose_accept(struct socket *sock, struct socket *newsock, int flags)
goto out_release;

newsk = skb->sk;
newsk->sk_socket = newsock;
newsk->sk_sleep = &newsock->wait;
sock_graft(newsk, newsock);

/* Now attach up the new socket */
skb->sk = NULL;
kfree_skb(skb);
sk->sk_ack_backlog--;
newsock->sk = newsk;

out_release:
release_sock(sk);
Expand Down

0 comments on commit 5373d4c

Please sign in to comment.