]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - net/tipc/bearer.c
tipc: handle collisions of 32-bit node address hash values
[mirror_ubuntu-jammy-kernel.git] / net / tipc / bearer.c
index a71f31879cb3ef2371eec48a9cf1b934b9df99e3..ae5b44ca1c1ecc1f9625d657131248821993228f 100644 (file)
@@ -235,7 +235,6 @@ static int tipc_enable_bearer(struct net *net, const char *name,
 {
        struct tipc_net *tn = tipc_net(net);
        struct tipc_bearer_names b_names;
-       u32 self = tipc_own_addr(net);
        int with_this_prio = 1;
        struct tipc_bearer *b;
        struct tipc_media *m;
@@ -244,7 +243,7 @@ static int tipc_enable_bearer(struct net *net, const char *name,
        int res = -EINVAL;
        char *errstr = "";
 
-       if (!self) {
+       if (!tipc_own_id(net)) {
                errstr = "not supported in standalone mode";
                res = -ENOPROTOOPT;
                goto rejected;