ipx: fix ipx_release()
authorEric Dumazet <[email protected]>
Tue, 22 Mar 2011 01:16:39 +0000 (18:16 -0700)
committerDavid S. Miller <[email protected]>
Tue, 22 Mar 2011 01:16:39 +0000 (18:16 -0700)
commit674f2115995b7b588cbf3540c9f9b2448a8c7ea8
treebd9bd1afa880531f6de70bea970aa198924f8632
parent20246a800389fe5442675c59863fec5a4f520c7c
ipx: fix ipx_release()

Commit b0d0d915d1d1a0 (remove the BKL) added a regression, because
sock_put() can free memory while we are going to use it later.

Fix is to delay sock_put() _after_ release_sock().

Reported-by: Ingo Molnar <[email protected]>
Tested-by: Ingo Molnar <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ipx/af_ipx.c