]> Pileus Git - ~andy/linux/blobdiff - net/ipv4/gre.c
Merge branch 'docs/docbook/drm' of git://github.com/mfwitten/linux into docs-move
[~andy/linux] / net / ipv4 / gre.c
index dbfc21de3479a3299a795b4bb58abb1eaae53ef3..8cb1ebb7cd7462b2b70c447b56d1693562b8027a 100644 (file)
@@ -34,7 +34,7 @@ int gre_add_protocol(const struct gre_protocol *proto, u8 version)
        if (gre_proto[version])
                goto err_out_unlock;
 
-       rcu_assign_pointer(gre_proto[version], proto);
+       RCU_INIT_POINTER(gre_proto[version], proto);
        spin_unlock(&gre_proto_lock);
        return 0;
 
@@ -54,7 +54,7 @@ int gre_del_protocol(const struct gre_protocol *proto, u8 version)
        if (rcu_dereference_protected(gre_proto[version],
                        lockdep_is_held(&gre_proto_lock)) != proto)
                goto err_out_unlock;
-       rcu_assign_pointer(gre_proto[version], NULL);
+       RCU_INIT_POINTER(gre_proto[version], NULL);
        spin_unlock(&gre_proto_lock);
        synchronize_rcu();
        return 0;