From: Eric Dumazet Date: Thu, 1 Aug 2013 18:43:08 +0000 (-0700) Subject: net: add a temporary sanity check in skb_orphan() X-Git-Tag: v3.12-rc1~132^2~399 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=376c7311bdb6;p=pandora-kernel.git net: add a temporary sanity check in skb_orphan() David suggested to add a BUG_ON() to catch if some layer sets skb->sk pointer without a corresponding destructor. As skb can sit in a queue, it's mandatory to make sure the socket cannot disappear, and it's usually done by taking a reference on the socket, then releasing it from the skb destructor. This patch is a follow-up to commit c34a761231b5 ("net: skb_orphan() changes") and will be reverted after catching all possible offenders if any. Suggested-by: David Miller Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed