summaryrefslogtreecommitdiffstats
path: root/Documentation/input
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2013-08-01 11:43:08 -0700
committerDavid S. Miller <davem@davemloft.net>2013-08-01 12:49:28 -0700
commit376c7311bdb6efea3322310333576a04d73fbe4c (patch)
tree7f3218e1bc7cfbda553714a4d2c82c0eeb02d3be /Documentation/input
parent46b3a421903aa2a4bc9731ca4663cee3ea869dab (diff)
downloadop-kernel-dev-376c7311bdb6efea3322310333576a04d73fbe4c.zip
op-kernel-dev-376c7311bdb6efea3322310333576a04d73fbe4c.tar.gz
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 <davem@davemloft.net> Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/input')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud