]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/decnet/af_decnet.c
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma
[linux.git] / net / decnet / af_decnet.c
index e19a92a62e142611f78d942ba22d2b1908430660..0a46ea3bddd541666320cbdef464adc17c97a033 100644 (file)
@@ -670,7 +670,7 @@ static int dn_create(struct net *net, struct socket *sock, int protocol,
 {
        struct sock *sk;
 
-       if (protocol < 0 || protocol > SK_PROTOCOL_MAX)
+       if (protocol < 0 || protocol > U8_MAX)
                return -EINVAL;
 
        if (!net_eq(net, &init_net))