]> err.no Git - linux-2.6/commit
[NETLINK]: Defer socket destruction a bit
authorTommy S. Christensen <tommy.christensen@tpack.net>
Thu, 19 May 2005 20:07:32 +0000 (13:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 May 2005 20:07:32 +0000 (13:07 -0700)
commitaa1c6a6f7f0518b42994d02756a41cbfdcac1916
treef56cbf31594d904ecc711269c14c206cf08c0126
parent68acc024ea7391e03c2c695ba0b9fb31baa974bf
[NETLINK]: Defer socket destruction a bit

In netlink_broadcast() we're sending shared skb's to netlink listeners
when possible (saves some copying). This is OK, since we hold the only
other reference to the skb.

However, this implies that we must drop our reference on the skb, before
allowing a receiving socket to disappear. Otherwise, the socket buffer
accounting is disrupted.

Signed-off-by: Tommy S. Christensen <tommy.christensen@tpack.net>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c