]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipx/ipx_route.c
net, ipx: convert ipx_route.refcnt from atomic_t to refcount_t
[mirror_ubuntu-bionic-kernel.git] / net / ipx / ipx_route.c
index 3e2a32a9f3bda13459d974fed70bb8dcc4c54fea..b5d91447f3dcd67b66463952e00596f153df3e44 100644 (file)
@@ -59,7 +59,7 @@ int ipxrtr_add_route(__be32 network, struct ipx_interface *intrfc,
                if (!rt)
                        goto out;
 
-               atomic_set(&rt->refcnt, 1);
+               refcount_set(&rt->refcnt, 1);
                ipxrtr_hold(rt);
                write_lock_bh(&ipx_routes_lock);
                list_add(&rt->node, &ipx_routes);