From 98e1ea0f178bdb8d26037edda9aae7bc2339bac4 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Thu, 7 Oct 2010 03:20:59 +0000 Subject: Possible race condition between cleanup and dereferencing Signed-off-by: shishir gowda Signed-off-by: Vijay Bellur BUG: 1760 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1760 --- xlators/storage/posix/src/posix.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/storage/posix/src/posix.c') diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index ef5dae218..51e4230ae 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -4438,6 +4438,9 @@ void fini (xlator_t *this) { struct posix_private *priv = this->private; + if (!priv) + return; + this->private = NULL; sys_lremovexattr (priv->base_path, "trusted.glusterfs.test"); GF_FREE (priv); return; -- cgit