Ignacy Gawędzki
1c4cff0cf5
gen_stats.c: Duplicate xstats buffer for later use
...
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>
2015-02-19 15:45:53 -05:00
..
2014-12-05 12:43:04 +01:00
2014-10-15 10:25:04 +10:30
2014-07-15 16:12:48 -07:00
2015-01-23 17:51:15 -08:00
2014-11-24 04:28:48 -05:00
2014-12-09 16:29:03 -05:00
2014-11-24 04:28:48 -05:00
2015-01-07 22:17:11 +01:00
2015-02-03 09:02:12 +01:00
2015-02-12 08:44:46 -08:00
2015-01-29 14:20:02 -08:00
2015-01-18 01:03:45 -05:00
2015-02-11 17:06:05 -08:00
2015-02-19 15:45:53 -05:00
2014-11-16 14:50:52 -05:00
2014-12-10 22:41:55 -05:00
2015-01-18 23:36:08 -05:00
2014-10-01 00:44:04 +10:00
2015-02-17 10:37:39 -08:00
2015-01-02 15:46:41 -05:00
2014-07-11 15:04:40 -07:00
2015-01-18 01:03:45 -05:00
2015-02-17 17:41:19 -08:00
2015-02-14 20:26:16 -08:00
2014-11-24 04:28:49 -05:00
2015-01-30 18:08:25 -08:00
2014-12-10 22:41:55 -05:00
2014-11-24 04:28:48 -05:00
2015-01-18 01:03:45 -05:00
2014-10-24 15:51:42 -04:00
2015-01-25 00:23:21 -08:00
2015-02-04 14:57:45 -08:00
2015-01-03 01:51:51 +01:00
2015-01-30 17:58:39 -08:00
2015-02-11 14:27:24 -08:00
2015-02-11 20:25:11 -08:00
2015-02-05 14:33:28 -08:00
2014-11-24 04:28:48 -05:00
2015-02-04 09:15:18 +01:00
2015-02-14 20:20:40 -08:00
2015-01-18 01:03:45 -05:00
2015-01-19 16:20:17 -05:00
2015-02-11 14:35:44 -08:00
2015-02-04 14:57:45 -08:00
2014-11-24 04:28:48 -05:00
2015-02-04 20:46:55 -08:00
2015-02-05 14:33:28 -08:00
2015-02-05 14:33:28 -08:00
2015-02-12 10:39:41 -08:00
2015-02-01 23:16:34 -08:00
2015-02-09 13:20:49 -08:00
2015-01-28 23:15:07 -08:00
2015-02-04 01:34:14 -05:00
2014-10-07 20:28:44 -04:00
2015-02-04 14:57:45 -08:00
2014-11-24 04:28:48 -05:00
2015-01-18 01:03:45 -05:00
2014-12-09 16:29:03 -05:00
2014-12-02 20:01:20 -08:00
2014-12-16 15:53:03 -08:00
2015-02-04 01:34:15 -05:00