summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarout Hedeshian <harouth@codeaurora.org>2015-05-19 16:44:29 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-07-06 23:30:49 -0700
commit0619a87ff2118bbe3b3ba643a33432ba4924d8e2 (patch)
tree604ee1d2a47853a11682e5ec3aaff5f607d5eef2
parent5827e4e7216b8bda6a9a738336bf3583ec06156f (diff)
downloadqcom-0619a87ff2118bbe3b3ba643a33432ba4924d8e2.tar.gz
net: sockev: corrected sk_family filter logic
Commit 43e0e31e2d6e ("net: sockev: filtering non INET socket events") from Krishnan introduced incorrect conditional logic which caused the socket address families to be incorrectly filtered. This patch corrects the logic. CRs-Fixed: 830947 Cc: Krishnan Ramachandran <kramacha@qti.qualcomm.com> Acked-by: Devesh Bisht <dbisht@qti.qualcomm.com> Change-Id: I40a001a69d5aab25f7f97a7378aceae301fd762a Signed-off-by: Harout Hedeshian <harouth@codeaurora.org>
-rw-r--r--net/core/sockev_nlmcast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/sockev_nlmcast.c b/net/core/sockev_nlmcast.c
index 7741f1f107c..16f234e5cb2 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);