From: hongchao.zhang Date: Sun, 12 Sep 2010 19:52:59 +0000 (+0800) Subject: b=23781 fix obdo leak issue X-Git-Tag: v1_8_4_53~5 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=e2edf92824340a7495cdb9b12b9670eac9f76830;p=fs%2Flustre-release.git 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 --- 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