summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra Bhat <raghavendrabhat@gluster.com>2011-04-07 09:41:47 +0000
committerVijay Bellur <vijay@gluster.com>2011-04-07 11:40:30 -0700
commit56814fefa0a4cff5d08528aa9103e01350d0e53a (patch)
tree74dffd62964ca2360f4e3d15c6cdeab39a41f316
parent62e1096fb01f7a12c5bc5ff77e3cb427248b80ad (diff)
do not access the empty loc inodev3.2.0qa9
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com> Signed-off-by: Vijay Bellur <vijay@gluster.com> BUG: 2611 ([glusterfs-3.1.0-qa5]: crash in quota_rename) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2611
-rw-r--r--xlators/features/quota/src/quota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c
index 34b04a7..ad06409 100644
--- a/xlators/features/quota/src/quota.c
+++ b/xlators/features/quota/src/quota.c
@@ -1339,8 +1339,8 @@ quota_link (call_frame_t *frame, xlator_t *this, loc_t *oldloc, loc_t *newloc)
if (ctx == NULL) {
gf_log (this->name, GF_LOG_WARNING,
"quota context not set in inode (ino:%"PRId64
- ", gfid:%s)", local->oldloc.inode->ino,
- uuid_utoa (local->oldloc.inode->gfid));
+ ", gfid:%s)", oldloc->inode?oldloc->inode->ino:0,
+ oldloc->inode?uuid_utoa (oldloc->inode->gfid):"0");
op_errno = EINVAL;
goto err;
}