net: diag: split inet_diag_dump_one_icsk into two
authorLorenzo Colitti <lorenzo@google.com>
Wed, 16 Dec 2015 03:30:02 +0000 (12:30 +0900)
committerAmit Pundir <amit.pundir@linaro.org>
Thu, 7 Apr 2016 11:19:52 +0000 (16:49 +0530)
commitc3b67e21677e5967e04e84861f7b67b456d7a7c4
tree8bccad50fcabb972e79b8dc3f9e22a863eba4f04
parent7187712e8d53b99c64b774011945d601345ddf36
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]

Change-Id: I144765afb6ff1cd66eb4757c9418112fb0b08a6f
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/inet_diag.h
net/ipv4/inet_diag.c