summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorIgnacy Gawędzki <ignacy.gawedzki@green-communications.fr>2015-02-13 14:47:05 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-18 13:31:21 +0100
commitf1796b116e46cd8c341e9b08d8aa1f3d5cc6f818 (patch)
tree05cd43e65d6f1322f9d9053a607a6b54e6a685e5 /net/ipv4
parentb830ba60e4ccd5d53c4746a9c3c7283511628b5f (diff)
downloadlwn-f1796b116e46cd8c341e9b08d8aa1f3d5cc6f818.tar.gz
lwn-f1796b116e46cd8c341e9b08d8aa1f3d5cc6f818.zip
gen_stats.c: Duplicate xstats buffer for later use
[ Upstream commit 1c4cff0cf55011792125b6041bc4e9713e46240f ] The gnet_stats_copy_app() function gets called, more often than not, with its second argument a pointer to an automatic variable in the caller's stack. Therefore, to avoid copying garbage afterwards when calling gnet_stats_finish_copy(), this data is better copied to a dynamically allocated memory that gets freed after use. [xiyou.wangcong@gmail.com: remove a useless kfree()] Signed-off-by: Ignacy Gawędzki <ignacy.gawedzki@green-communications.fr> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions