diff options
author | Junaid <junaid@gluster.com> | 2011-03-31 04:28:26 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-31 05:04:26 -0700 |
commit | 1c148f85c5abf561faeb68c699a13c8bd683de5e (patch) | |
tree | 97c2a75c55d48ea1bce5cc7c6744f22882ee132c /xlators/features/marker/src/marker-common.c | |
parent | 99779326d09f7ac98bb75bb1432d53c7c320a5c9 (diff) |
features/marker: Fix memory corruption.
Signed-off-by: Junaid <junaid@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2629 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2629
Diffstat (limited to 'xlators/features/marker/src/marker-common.c')
-rw-r--r-- | xlators/features/marker/src/marker-common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/features/marker/src/marker-common.c b/xlators/features/marker/src/marker-common.c index 3e2d7f00047..855fb9936c5 100644 --- a/xlators/features/marker/src/marker-common.c +++ b/xlators/features/marker/src/marker-common.c @@ -49,13 +49,14 @@ marker_force_inode_ctx_get (inode_t *inode, xlator_t *this, { ret = __inode_ctx_get (inode, this, &ctx_int); if (ret == 0) - *ctx = (marker_inode_ctx_t *) ctx_int; + *ctx = (marker_inode_ctx_t *) (unsigned long)ctx_int; else { *ctx = marker_inode_ctx_new (); if (*ctx == NULL) goto unlock; - ret = __inode_ctx_put (inode, this, (uint64_t ) *ctx); + ret = __inode_ctx_put (inode, this, + (uint64_t )(unsigned long) *ctx); if (ret == -1) { GF_FREE (*ctx); goto unlock; |