Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5faf957 authored by Harout Hedeshian's avatar Harout Hedeshian Committed by Ravinder Konka
Browse files

net: sockev: corrected sk_family filter logic



Commit 43e0e31e ("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: default avatarDevesh Bisht <dbisht@qti.qualcomm.com>
Change-Id: I40a001a69d5aab25f7f97a7378aceae301fd762a
Signed-off-by: default avatarHarout Hedeshian <harouth@codeaurora.org>
parent 1b594d62
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);