]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/net/sock.h
[NET]: Fix bugs in "Whether sock accept queue is full" checking
[linux-2.6-omap-h63xx.git] / include / net / sock.h
index 2c7d60ca354858ac75ead88773d0886aedcc185c..849c7df23181fc4ba57dafffdf64941598a580eb 100644 (file)
@@ -426,7 +426,7 @@ static inline void sk_acceptq_added(struct sock *sk)
 
 static inline int sk_acceptq_is_full(struct sock *sk)
 {
-       return sk->sk_ack_backlog > sk->sk_max_ack_backlog;
+       return sk->sk_ack_backlog >= sk->sk_max_ack_backlog;
 }
 
 /*