aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink/af_netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r--net/netlink/af_netlink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index a88745e4b7df..05030ad1a36c 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -1848,7 +1848,7 @@ static int netlink_sendmsg(struct socket *sock, struct msghdr *msg, size_t len)
1848 } 1848 }
1849 1849
1850 if (dst_group) { 1850 if (dst_group) {
1851 atomic_inc(&skb->users); 1851 refcount_inc(&skb->users);
1852 netlink_broadcast(sk, skb, dst_portid, dst_group, GFP_KERNEL); 1852 netlink_broadcast(sk, skb, dst_portid, dst_group, GFP_KERNEL);
1853 } 1853 }
1854 err = netlink_unicast(sk, skb, dst_portid, msg->msg_flags&MSG_DONTWAIT); 1854 err = netlink_unicast(sk, skb, dst_portid, msg->msg_flags&MSG_DONTWAIT);
@@ -2226,7 +2226,7 @@ int __netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
2226 struct netlink_sock *nlk; 2226 struct netlink_sock *nlk;
2227 int ret; 2227 int ret;
2228 2228
2229 atomic_inc(&skb->users); 2229 refcount_inc(&skb->users);
2230 2230
2231 sk = netlink_lookup(sock_net(ssk), ssk->sk_protocol, NETLINK_CB(skb).portid); 2231 sk = netlink_lookup(sock_net(ssk), ssk->sk_protocol, NETLINK_CB(skb).portid);
2232 if (sk == NULL) { 2232 if (sk == NULL) {
@@ -2431,7 +2431,7 @@ int nlmsg_notify(struct sock *sk, struct sk_buff *skb, u32 portid,
2431 int exclude_portid = 0; 2431 int exclude_portid = 0;
2432 2432
2433 if (report) { 2433 if (report) {
2434 atomic_inc(&skb->users); 2434 refcount_inc(&skb->users);
2435 exclude_portid = portid; 2435 exclude_portid = portid;
2436 } 2436 }
2437 2437