diff options
author | David S. Miller <davem@davemloft.net> | 2016-06-30 05:03:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-30 05:03:36 -0400 |
commit | ee58b57100ca953da7320c285315a95db2f7053d (patch) | |
tree | 77b815a31240adc4d6326346908137fc6c2c3a96 /net/ax25/ax25_std_timer.c | |
parent | 6f30e8b022c8e3a722928ddb1a2ae0be852fcc0e (diff) | |
parent | e7bdea7750eb2a64aea4a08fa5c0a31719c8155d (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Several cases of overlapping changes, except the packet scheduler
conflicts which deal with the addition of the free list parameter
to qdisc_enqueue().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ax25/ax25_std_timer.c')
-rw-r--r-- | net/ax25/ax25_std_timer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/ax25/ax25_std_timer.c b/net/ax25/ax25_std_timer.c index 004467c9e6e1..2c0d6ef66f9d 100644 --- a/net/ax25/ax25_std_timer.c +++ b/net/ax25/ax25_std_timer.c | |||
@@ -38,6 +38,7 @@ void ax25_std_heartbeat_expiry(ax25_cb *ax25) | |||
38 | 38 | ||
39 | switch (ax25->state) { | 39 | switch (ax25->state) { |
40 | case AX25_STATE_0: | 40 | case AX25_STATE_0: |
41 | case AX25_STATE_2: | ||
41 | /* Magic here: If we listen() and a new link dies before it | 42 | /* Magic here: If we listen() and a new link dies before it |
42 | is accepted() it isn't 'dead' so doesn't get removed. */ | 43 | is accepted() it isn't 'dead' so doesn't get removed. */ |
43 | if (!sk || sock_flag(sk, SOCK_DESTROY) || | 44 | if (!sk || sock_flag(sk, SOCK_DESTROY) || |
@@ -47,6 +48,7 @@ void ax25_std_heartbeat_expiry(ax25_cb *ax25) | |||
47 | sock_hold(sk); | 48 | sock_hold(sk); |
48 | ax25_destroy_socket(ax25); | 49 | ax25_destroy_socket(ax25); |
49 | bh_unlock_sock(sk); | 50 | bh_unlock_sock(sk); |
51 | /* Ungrab socket and destroy it */ | ||
50 | sock_put(sk); | 52 | sock_put(sk); |
51 | } else | 53 | } else |
52 | ax25_destroy_socket(ax25); | 54 | ax25_destroy_socket(ax25); |
@@ -144,7 +146,8 @@ void ax25_std_t1timer_expiry(ax25_cb *ax25) | |||
144 | case AX25_STATE_2: | 146 | case AX25_STATE_2: |
145 | if (ax25->n2count == ax25->n2) { | 147 | if (ax25->n2count == ax25->n2) { |
146 | ax25_send_control(ax25, AX25_DISC, AX25_POLLON, AX25_COMMAND); | 148 | ax25_send_control(ax25, AX25_DISC, AX25_POLLON, AX25_COMMAND); |
147 | ax25_disconnect(ax25, ETIMEDOUT); | 149 | if (!sock_flag(ax25->sk, SOCK_DESTROY)) |
150 | ax25_disconnect(ax25, ETIMEDOUT); | ||
148 | return; | 151 | return; |
149 | } else { | 152 | } else { |
150 | ax25->n2count++; | 153 | ax25->n2count++; |