x25: Fix sleep from timer on socket destroy.
authorDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2009 12:40:30 +0000 (05:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jun 2009 12:40:30 +0000 (05:40 -0700)
commit14ebaf81e13ce66bff275380b246796fd16cbfa1
tree6da2824a42a07f325787130d093e1a986fa29110
parenta1870b9cc280fe16fed13994810f8a1687be3bcf
x25: Fix sleep from timer on socket destroy.

If socket destuction gets delayed to a timer, we try to
lock_sock() from that timer which won't work.

Use bh_lock_sock() in that case.

Signed-off-by: David S. Miller <davem@davemloft.net>
Tested-by: Ingo Molnar <mingo@elte.hu>
include/net/x25.h
net/x25/af_x25.c
net/x25/x25_timer.c