X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fnetrom%2Fnr_timer.c;h=ddba1c144260d4b6adfe1b288c9a68739d551b31;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hp=75b72d389ba95283b4c0f1e9adfc69eb8d3ed2a5;hpb=4e76c8a9fa413ccc09d3f7f664183dcce3555d57;p=linux-2.6.git diff --git a/net/netrom/nr_timer.c b/net/netrom/nr_timer.c index 75b72d389..ddba1c144 100644 --- a/net/netrom/nr_timer.c +++ b/net/netrom/nr_timer.c @@ -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); - nr_destroy_socket(sk); bh_unlock_sock(sk); + nr_destroy_socket(sk); sock_put(sk); return; }