From: Eric Dumazet Date: Tue, 15 Dec 2009 05:47:03 +0000 (+0000) Subject: packet: dont call sleeping functions while holding rcu_read_lock() X-Git-Tag: v2.6.33-rc1~59^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a35ca80c1db7279c3c0655063f6d3490e399b17;p=pandora-kernel.git packet: dont call sleeping functions while holding rcu_read_lock() commit 654d1f8a019dfa06d (packet: less dev_put() calls) introduced a problem, calling potentially sleeping functions from a rcu_read_lock() protected section. Fix this by releasing lock before the sock_wmalloc()/memcpy_fromiovec() calls. After skb allocation and copy from user space, we redo device lookup and appropriate tests. Reported-and-tested-by: Frederic Weisbecker Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed