From: Eric Dumazet Date: Thu, 16 Apr 2015 23:12:28 +0000 (-0700) Subject: tcp: tcp_get_info() should fetch socket fields once X-Git-Tag: omap-for-v4.1/fixes-rc1~108^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fad9dfefea6405039491e7e4fc21fb6e59e7d26c;p=pandora-kernel.git tcp: tcp_get_info() should fetch socket fields once tcp_get_info() can be called without holding socket lock, so any socket fields can change under us. Use READ_ONCE() to fetch sk_pacing_rate and sk_max_pacing_rate Fixes: 977cb0ecf82e ("tcp: add pacing_rate information into tcp_info") Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed