From 2e81e4b828d53068e291100f4024d628d9a59443 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Fri, 7 Jan 2011 03:49:24 +0000 Subject: storage/posix: in opendir, allocate proper size for fd ctx pointer Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati 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 --- xlators/storage/posix/src/posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/storage/posix') 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, -- cgit