]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 2 Jul 2009 23:49:43 +0000 (16:49 -0700)
commit29f84b1db493dd6062f29b92937466cc1a59440f
tree269b9d65d37c8a938a1bc707e24c017e594355ab
parente692eaafaf5d7c8aeef219959acaaa55702f5ebe
x25: Fix sleep from timer on socket destroy.

[ Upstream commit 14ebaf81e13ce66bff275380b246796fd16cbfa1 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/net/x25.h
net/x25/af_x25.c
net/x25/x25_timer.c