Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162921
b: refs/heads/master
c: 7514bab
h: refs/heads/master
i:
  162919: 8e272b4
v: v3
  • Loading branch information
Hendrik Brueckner authored and David S. Miller committed Sep 17, 2009
1 parent bfea46d commit d3618f6
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 56a73de3889383b70ed1fef06aaab0677731b0ea
refs/heads/master: 7514bab04e567c9408fe0facbde4277f09d5eb74
10 changes: 5 additions & 5 deletions trunk/net/iucv/af_iucv.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,9 @@ static void iucv_sock_cleanup_listen(struct sock *parent)
}

parent->sk_state = IUCV_CLOSED;
sock_set_flag(parent, SOCK_ZAPPED);
}

/* Kill socket */
/* Kill socket (only if zapped and orphaned) */
static void iucv_sock_kill(struct sock *sk)
{
if (!sock_flag(sk, SOCK_ZAPPED) || sk->sk_socket)
Expand Down Expand Up @@ -426,17 +425,18 @@ static void iucv_sock_close(struct sock *sk)

skb_queue_purge(&iucv->send_skb_q);
skb_queue_purge(&iucv->backlog_skb_q);

sock_set_flag(sk, SOCK_ZAPPED);
break;

default:
sock_set_flag(sk, SOCK_ZAPPED);
/* nothing to do here */
break;
}

/* mark socket for deletion by iucv_sock_kill() */
sock_set_flag(sk, SOCK_ZAPPED);

release_sock(sk);
iucv_sock_kill(sk);
}

static void iucv_sock_init(struct sock *sk, struct sock *parent)
Expand Down

0 comments on commit d3618f6

Please sign in to comment.