summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2010-10-07 03:20:59 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-08 04:29:00 -0700
commit98e1ea0f178bdb8d26037edda9aae7bc2339bac4 (patch)
treec560211236cbc90f37a2682c5ff7da6285ae0744 /xlators/features
parentd4b0360c8c4c5dab692f827972ccea0e728af688 (diff)
Possible race condition between cleanup and dereferencing
Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1760 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1760
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/locks/src/posix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/locks/src/posix.c b/xlators/features/locks/src/posix.c
index 36c399c115c..29b3bb079b6 100644
--- a/xlators/features/locks/src/posix.c
+++ b/xlators/features/locks/src/posix.c
@@ -1885,6 +1885,9 @@ fini (xlator_t *this)
posix_locks_private_t *priv = NULL;
priv = this->private;
+ if (!priv)
+ return 0;
+ this->private = NULL;
GF_FREE (priv);
return 0;