diff options
Diffstat (limited to 'include/net/sock.h')
-rw-r--r-- | include/net/sock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index d8a5d87ad145..d27e748a8259 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -278,7 +278,7 @@ static inline int sk_unhashed(const struct sock *sk) | |||
278 | 278 | ||
279 | static inline int sk_hashed(const struct sock *sk) | 279 | static inline int sk_hashed(const struct sock *sk) |
280 | { | 280 | { |
281 | return sk->sk_node.pprev != NULL; | 281 | return !sk_unhashed(sk); |
282 | } | 282 | } |
283 | 283 | ||
284 | static __inline__ void sk_node_init(struct hlist_node *node) | 284 | static __inline__ void sk_node_init(struct hlist_node *node) |