Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs external/cddl/osn...



details:   https://anonhg.NetBSD.org/src/rev/8586e334780b
branches:  trunk
changeset: 849869:8586e334780b
user:      fox <fox%NetBSD.org@localhost>
date:      Tue Mar 17 00:54:03 2020 +0000

description:
external/cddl/osnet: Fix -Werror=maybe-uninitialized error in zfs_acl.c.

Detected by build.sh with MKLIBCSANITIZER=yes and fixed upstream, pick only the fix from the commit.

Upstream commits

https://github.com/zfsonfreebsd/ZoF/commit/100a91aa3e9773f2a2a373c5cb066b52c780716c
https://github.com/openzfs/zfs/commit/100a91aa3e9773f2a2a373c5cb066b52c780716c

Cherry-pick:
>From 100a91aa3e9773f2a2a373c5cb066b52c780716c Mon Sep 17 00:00:00 2001
From: Chunwei Chen <david.chen%osnexus.com@localhost>
Date: Fri, 17 Jun 2016 17:36:01 -0700
Subject: [PATCH] Fix NFS credential

Signed-off-by: Chunwei Chen <david.chen%osnexus.com@localhost>
Signed-off-by: Brian Behlendorf <behlendorf1%llnl.gov@localhost>
Closes #4772
Closes #4758

Reviewed by: kamil@

diffstat:

 external/cddl/osnet/dist/uts/common/fs/zfs/zfs_acl.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 8acfd6feabde -r 8586e334780b external/cddl/osnet/dist/uts/common/fs/zfs/zfs_acl.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_acl.c      Tue Mar 17 00:50:12 2020 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_acl.c      Tue Mar 17 00:54:03 2020 +0000
@@ -1598,7 +1598,7 @@
        int             error;
        zfsvfs_t        *zfsvfs = dzp->z_zfsvfs;
        zfs_acl_t       *paclp;
-       gid_t           gid;
+       gid_t           gid = vap->va_gid;
        boolean_t       trim = B_FALSE;
        boolean_t       inherited = B_FALSE;
 



Home | Main Index | Thread Index | Old Index