]> granicus.if.org Git - zfs/commitdiff
OpenZFS 8966 - Source file zfs_acl.c, function zfs_aclset_common contains a use after...
authorWHR <msl0000023508@gmail.com>
Sun, 14 Jan 2018 20:57:54 +0000 (23:57 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 8 Feb 2018 18:33:45 +0000 (10:33 -0800)
Authored by: WHR <msl0000023508@gmail.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: Andriy Gapon <avg@FreeBSD.org>
Reviewed by: George Melikov <mail@gmelikov.ru>
Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Approved by: Richard Lowe <richlowe@richlowe.net>
Ported-by: Giuseppe Di Natale <dinatale2@llnl.gov>
OpenZFS-issue: https://www.illumos.org/issues/8966
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/c95549fcdc
Closes #7141

module/zfs/zfs_acl.c

index 71a837a355740bbd5ea89ea6294a81e31c4a0b2d..5ef20f08826d9ebd6de72220c1aad4b109253ec3 100644 (file)
@@ -1323,6 +1323,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;
 
@@ -1369,7 +1370,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),