netrom: Fix sock_orphan() use in nr_release
commit859f4c74d8de4dc344b3a115367d5e22a79bddaf
authorJarek Poplawski <jarkao2@gmail.com>
Mon, 6 Oct 2008 19:54:57 +0000 (6 12:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Oct 2008 19:54:57 +0000 (6 12:54 -0700)
tree4e91e7053094c5b71c00fdc7e018f2262cfbbfd4
parent33d1d2c52c3befa6c4df33b4ba58137d1c48894b
netrom: Fix sock_orphan() use in nr_release

While debugging another bug it was found that NetRom socks
are sometimes seen unorphaned in sk_free(). This patch moves
sock_orphan() in nr_release() to the beginning (like in ax25,
or rose).

Reported-and-tested-by: Bernard Pidoux f6bvp <f6bvp@free.fr>
Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netrom/af_netrom.c