From cc734698b6edcbf54b244a23ff757ae6f2f669b5 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Tue, 12 Apr 2011 09:07:57 +0000 Subject: quota: assign frame->local to local before checking op_ret Signed-off-by: Raghavendra Bhat Signed-off-by: Anand Avati BUG: 2733 ([glusterfs-3.2.0qa11]: nfs server crashed) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2733 --- xlators/features/quota/src/quota.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xlators/features/quota') diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 2b238b2b5..c7d92d2b8 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; -- cgit