From: David S. Miller Date: Sun, 8 May 2011 20:45:20 +0000 (-0700) Subject: l2tp: Fix locking in l2tp_core.c X-Git-Tag: v3.0-rc1~377^2~149 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6af88da14ee284aaad6e4326da09a89191ab6165;p=pandora-kernel.git l2tp: Fix locking in l2tp_core.c l2tp_xmit_skb() must take the socket lock. It makes use of ip_queue_xmit() which expects to execute in a socket atomic context. Since we execute this function in software interrupts, we cannot use the usual lock_sock()/release_sock() sequence, instead we have to use bh_lock_sock() and see if a user has the socket locked, and if so drop the packet. Signed-off-by: David S. Miller --- Reading git-diff-tree failed