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)
committerLorenzo Colitti <lorenzo@google.com>
Thu, 25 Feb 2016 00:01:21 +0000 (09:01 +0900)
commit6b3d21c649a8b71c44543dc5933f7aa1c2a7a390
tree09041ec836ec06ae56796351e599f1293be87f03
parentb7f6f4e9a4d9878662c7441b29191d8071205fcd
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