summaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@nicira.com>2013-04-29 20:52:01 +0000
committerDavid S. Miller <davem@davemloft.net>2013-05-01 14:57:03 -0400
commitae6164adeb559db1828d4abd917971b61130f72e (patch)
tree04e5b05f5a722f58da2d7ea44ebf38b97f29d1e2 /net/netlink
parent0dcffd09641f3abb21ac5cabc61542ab289d1a3c (diff)
downloadop-kernel-dev-ae6164adeb559db1828d4abd917971b61130f72e.zip
op-kernel-dev-ae6164adeb559db1828d4abd917971b61130f72e.tar.gz
netlink: Fix skb ref counting.
Commit f9c2288837ba072b21dba955f04a4c97eaa77b1e (netlink: implement memory mapped recvmsg) increamented skb->users ref count twice for a dump op which does not look right. Following patch fixes that. CC: Patrick McHardy <kaber@trash.net> Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/af_netlink.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index d9c7869..12ac6b4 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -2504,7 +2504,6 @@ int __netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
cb->data = control->data;
cb->module = control->module;
cb->min_dump_alloc = control->min_dump_alloc;
- atomic_inc(&skb->users);
cb->skb = skb;
sk = netlink_lookup(sock_net(ssk), ssk->sk_protocol, NETLINK_CB(skb).portid);
OpenPOWER on IntegriCloud