浏览代码

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/shaggy/jfs-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/shaggy/jfs-2.6:
  jfs: Fix early release of acl in jfs_get_acl
Linus Torvalds 16 年之前
父节点
当前提交
a9355cf8e6
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      fs/jfs/acl.c

+ 1 - 3
fs/jfs/acl.c

@@ -67,10 +67,8 @@ static struct posix_acl *jfs_get_acl(struct inode *inode, int type)
 		acl = posix_acl_from_xattr(value, size);
 		acl = posix_acl_from_xattr(value, size);
 	}
 	}
 	kfree(value);
 	kfree(value);
-	if (!IS_ERR(acl)) {
+	if (!IS_ERR(acl))
 		set_cached_acl(inode, type, acl);
 		set_cached_acl(inode, type, acl);
-		posix_acl_release(acl);
-	}
 	return acl;
 	return acl;
 }
 }