On Tue, Apr 29, 2014 at 07:59:51PM +0200, Marco Munderloh wrote: > changes V2: I forgot to set rc = 0, leaving it uninitialized if acl was NULL. You don't need to initialise rc here. But why not, more simply: +++ b/fs/jfs/acl.c @@ -83,6 +83,8 @@ static int __jfs_set_acl(tid_t tid, struct inode *inode, int t switch (type) { case ACL_TYPE_ACCESS: ea_name = POSIX_ACL_XATTR_ACCESS; + if (!acl) + break; rc = posix_acl_equiv_mode(acl, &inode->i_mode); if (rc < 0) return rc; -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html