diff options
-rw-r--r-- | net/core/sockev_nlmcast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sockev_nlmcast.c b/net/core/sockev_nlmcast.c index 7741f1f107cd..16f234e5cb2a 100644 --- a/net/core/sockev_nlmcast.c +++ b/net/core/sockev_nlmcast.c @@ -75,7 +75,7 @@ static int sockev_client_cb(struct notifier_block *nb, if ((socknlmsgsk == NULL) || (sock == NULL) || (sock->sk == NULL)) goto done; - if (sock->sk->sk_family != AF_INET || sock->sk->sk_family != AF_INET6) + if (sock->sk->sk_family != AF_INET && sock->sk->sk_family != AF_INET6) goto done; skb = nlmsg_new(sizeof(struct sknlsockevmsg), GFP_KERNEL); |