]> 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 3349ea81f9016fb785ec888fadf86faa4d859ed7..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))
@@ -1091,7 +1091,7 @@ static int dn_accept(struct socket *sock, struct socket *newsock, int flags,
        }
 
        cb = DN_SKB_CB(skb);
-       sk->sk_ack_backlog--;
+       sk_acceptq_removed(sk);
        newsk = dn_alloc_sock(sock_net(sk), newsock, sk->sk_allocation, kern);
        if (newsk == NULL) {
                release_sock(sk);