UPSTREAM: net: diag: split inet_diag_dump_one_icsk into two

Currently, inet_diag_dump_one_icsk finds a socket and then dumps
its information to userspace. Split it into a part that finds the
socket and a part that dumps the information.

[cherry-pick of net-next b613f56ec9baf30edf5d9d607b822532a273dad7]

Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Bug: None
Patchset: net-diag-socket-destroy

Signed-off-by: Mattias Nissler <mnissler@google.com>
Change-Id: I2908a0d12dd1ccd8dd1a9d276fd1c9c8d82ea36f
2 files changed