]> git.kernelconcepts.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, 30 Jul 2009 23:06:13 +0000 (16:06 -0700)
commit3154ee5364cf95cc3948589d870f6f6c957ba0a3
tree6d59395a94b03b8fb49f00a6115198ee6ec207bd
parentb0267e68735995b9b6d8e5d237b58fb25238bbaa
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