diff options
author | Anand Avati <avati@gluster.com> | 2010-06-07 13:19:11 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-06-07 11:58:53 -0700 |
commit | b316601c29012bd983b2f232f3a605fd937e654a (patch) | |
tree | 55456781d5ffb4975d0f7f351378fcf35c779a38 /xlators | |
parent | 79241696fbdebe2583298f12cbaee068ce60c655 (diff) |
quick-read: fix size parameter to GF_CALLOC of priv to fix mem corruption
Signed-off-by: Anand V. Avati <avati@blackhole.gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 723 (enhancements to quick read)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=723
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/performance/quick-read/src/quick-read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c index 33ab66183bd..70ef8858f1b 100644 --- a/xlators/performance/quick-read/src/quick-read.c +++ b/xlators/performance/quick-read/src/quick-read.c @@ -2509,7 +2509,7 @@ init (xlator_t *this) "dangling volume. check volfile "); } - priv = GF_CALLOC (1, sizeof (*conf), + priv = GF_CALLOC (1, sizeof (*priv), gf_qr_mt_qr_private_t); if (priv == NULL) { gf_log (this->name, GF_LOG_ERROR, |