From: Eric Dumazet Date: Thu, 24 Sep 2009 10:49:24 +0000 (+0000) Subject: net: Fix sock_wfree() race X-Git-Tag: v2.6.32-rc3~56^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d99927f4d93f36553699573b279e0ff98ad7dea6;p=pandora-kernel.git net: Fix sock_wfree() race Commit 2b85a34e911bf483c27cfdd124aeb1605145dc80 (net: No more expensive sock_hold()/sock_put() on each tx) opens a window in sock_wfree() where another cpu might free the socket we are working on. A fix is to call sk->sk_write_space(sk) while still holding a reference on sk. Reported-by: Jike Song Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed