From e2edf92824340a7495cdb9b12b9670eac9f76830 Mon Sep 17 00:00:00 2001 From: "hongchao.zhang" Date: Mon, 13 Sep 2010 03:52:59 +0800 Subject: [PATCH] b=23781 fix obdo leak issue in ll_setattr_raw, if ll_extent_lock call fails, the newly allocated obdo has not been freed before return. i=johann --- lustre/llite/llite_lib.c | 1 + lustre/tests/sanity-quota.sh | 0 2 files changed, 1 insertion(+) mode change 100644 => 100755 lustre/tests/sanity-quota.sh diff --git a/lustre/llite/llite_lib.c b/lustre/llite/llite_lib.c index d37155a..a0bd6ad 100644 --- a/lustre/llite/llite_lib.c +++ b/lustre/llite/llite_lib.c @@ -1585,6 +1585,7 @@ int ll_setattr_raw(struct inode *inode, struct iattr *attr) &lockh, 0); LOCK_INODE_MUTEX(inode); if (rc) { + OBDO_FREE(oa); OBD_FREE_PTR(oinfo); RETURN(rc); } diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh old mode 100644 new mode 100755 -- 1.8.3.1