diff options
author | Raghavendra G <raghavendra@gluster.com> | 2011-03-29 14:15:32 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-30 04:28:08 -0700 |
commit | d088ffe14da46247052e34c5cfaced46f5079b24 (patch) | |
tree | 3a8499554945dd0ae1d87ff4d4fde04c052c0df9 /xlators/debug/io-stats/src | |
parent | 4597929cc527f8abaf9ef9e1d5499ea416e5c7ff (diff) |
debug/io-stats: fix memory corruption.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2619 (Memory corruption in io-stats)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2619
Diffstat (limited to 'xlators/debug/io-stats/src')
-rw-r--r-- | xlators/debug/io-stats/src/io-stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c index b7c522fe588..5e0aef84f9f 100644 --- a/xlators/debug/io-stats/src/io-stats.c +++ b/xlators/debug/io-stats/src/io-stats.c @@ -2464,7 +2464,7 @@ init (xlator_t *this) for (i = 0; i <IOS_STATS_TYPE_MAX; i++) { conf->list[i].iosstats = GF_CALLOC (1, - sizeof(conf->list[i].iosstats), + sizeof(*conf->list[i].iosstats), gf_io_stats_mt_ios_stat); if (!conf->list[i].iosstats) { |