OSDN Git Service

net: diag: support v4mapped sockets in inet_diag_find_one_icsk()
authorEric Dumazet <edumazet@google.com>
Thu, 21 Jan 2016 00:25:01 +0000 (16:25 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:23:21 +0000 (06:23 +0200)
commitab3f1a5b9ce54a4509824ae4336e3fa5ca65ffa6
tree88238ad16499d0c42cda9ed3ad0c1a83cd6987c6
parent6f311381f318a1c756075848784cd39cf32fa6e3
net: diag: support v4mapped sockets in inet_diag_find_one_icsk()

[ Upstream commit 7c1306723ee916ea9f1fa7d9e4c7a6d029ca7aaf ]

Lorenzo reported that we could not properly find v4mapped sockets
in inet_diag_find_one_icsk(). This patch fixes the issue.

Reported-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv4/inet_diag.c