summaryrefslogtreecommitdiffstats
path: root/xlators/features/quota
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2011-04-12 09:07:57 +0000
committerAnand Avati <avati@gluster.com>2011-04-12 21:50:13 -0700
commitcc734698b6edcbf54b244a23ff757ae6f2f669b5 (patch)
tree9ad0dae1eb08872508a360a46aa5535c3c14745c /xlators/features/quota
parent35998844040cf713f229e896524a1a6be249e31d (diff)
quota: assign frame->local to local before checking op_ret
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2733 ([glusterfs-3.2.0qa11]: nfs server crashed) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2733
Diffstat (limited to 'xlators/features/quota')
-rw-r--r--xlators/features/quota/src/quota.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index 2b238b2b559..c7d92d2b872 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -193,11 +193,12 @@ quota_validate_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
uint64_t value = 0;
call_stub_t *stub = NULL;
+ local = frame->local;
+
if (op_ret < 0) {
goto unwind;
}
- local = frame->local;
GF_ASSERT (local);
priv = this->private;