Skip to content

Commit

Permalink
8966 Source file zfs_acl.c, function zfs_aclset_common contains a use…
Browse files Browse the repository at this point in the history
… after end of the lifetime of a local variable

Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: Andriy Gapon <avg@FreeBSD.org>
Approved by: Richard Lowe <richlowe@richlowe.net>
  • Loading branch information
Low-power authored and prakashsurya committed Feb 6, 2018
1 parent d3c0397 commit 82693e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/src/uts/common/fs/zfs/zfs_acl.c
Expand Up @@ -1188,6 +1188,7 @@ zfs_aclset_common(znode_t *zp, zfs_acl_t *aclp, cred_t *cr, dmu_tx_t *tx)
sa_bulk_attr_t bulk[5];
uint64_t ctime[2];
int count = 0;
zfs_acl_phys_t acl_phys;

mode = zp->z_mode;

Expand Down Expand Up @@ -1234,7 +1235,6 @@ zfs_aclset_common(znode_t *zp, zfs_acl_t *aclp, cred_t *cr, dmu_tx_t *tx)
} else { /* Painful legacy way */
zfs_acl_node_t *aclnode;
uint64_t off = 0;
zfs_acl_phys_t acl_phys;
uint64_t aoid;

if ((error = sa_lookup(zp->z_sa_hdl, SA_ZPL_ZNODE_ACL(zfsvfs),
Expand Down

0 comments on commit 82693e0

Please sign in to comment.