Whamcloud - gitweb
b=23781 fix obdo leak issue
authorhongchao.zhang <Hongchao.Zhang@sun.com>
Sun, 12 Sep 2010 19:52:59 +0000 (03:52 +0800)
committerjohann <johann@granier.local>
Tue, 28 Sep 2010 14:01:11 +0000 (16:01 +0200)
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
lustre/tests/sanity-quota.sh [changed mode: 0644->0755]

index d37155a..a0bd6ad 100644 (file)
@@ -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);
                                 }
old mode 100644 (file)
new mode 100755 (executable)