From: Herbert Xu Date: Fri, 23 Jan 2015 21:02:40 +0000 (+1100) Subject: udp_diag: Fix socket skipping within chain X-Git-Tag: fixes-v4.0-rc1~235^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86f3cddbc3037882414c7308973530167906b7e9;p=pandora-kernel.git udp_diag: Fix socket skipping within chain While working on rhashtable walking I noticed that the UDP diag dumping code is buggy. In particular, the socket skipping within a chain never happens, even though we record the number of sockets that should be skipped. As this code was supposedly copied from TCP, this patch does what TCP does and resets num before we walk a chain. Signed-off-by: Herbert Xu Acked-by: Pavel Emelyanov Signed-off-by: David S. Miller --- Reading git-diff-tree failed