linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / net / netrom / nr_timer.c
index ddba1c1..75b72d3 100644 (file)
@@ -138,8 +138,8 @@ static void nr_heartbeat_expiry(unsigned long param)
                if (sock_flag(sk, SOCK_DESTROY) ||
                    (sk->sk_state == TCP_LISTEN && sock_flag(sk, SOCK_DEAD))) {
                        sock_hold(sk);
-                       bh_unlock_sock(sk);
                        nr_destroy_socket(sk);
+                       bh_unlock_sock(sk);
                        sock_put(sk);
                        return;
                }