summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2011-01-07 03:49:24 +0000
committerAnand V. Avati <avati@dev.gluster.com>2011-01-07 17:43:45 -0800
commit2e81e4b828d53068e291100f4024d628d9a59443 (patch)
treececacaef5ccf3fc72374c3a8d48092c3f09a70b9 /xlators/storage/posix
parent879dc2f04f2bd35362bee214618f78ec4d688949 (diff)
storage/posix: in opendir, allocate proper size for fd ctx pointer
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2280 (wrong size allocated for posix_fd in posix.c:posix_opendir()) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2280
Diffstat (limited to 'xlators/storage/posix')
-rw-r--r--xlators/storage/posix/src/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c
index a548081ecc8..f46e10e9acf 100644
--- a/xlators/storage/posix/src/posix.c
+++ b/xlators/storage/posix/src/posix.c
@@ -897,7 +897,7 @@ posix_opendir (call_frame_t *frame, xlator_t *this,
goto out;
}
- pfd = GF_CALLOC (1, sizeof (*fd), gf_posix_mt_posix_fd);
+ pfd = GF_CALLOC (1, sizeof (*pfd), gf_posix_mt_posix_fd);
if (!pfd) {
op_errno = errno;
gf_log (this->name, GF_LOG_ERROR,