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 vdev_inuse might ...



details:   https://anonhg.NetBSD.org/src/rev/43c36115a1ac
branches:  trunk
changeset: 992201:43c36115a1ac
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 18 11:58:59 2018 +0000

description:
vdev_inuse might not be called and spare_guid contains random stuff.

diffstat:

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

diffs (12 lines):

diff -r 62fc72d2b733 -r 43c36115a1ac external/cddl/osnet/dist/uts/common/fs/zfs/vdev_label.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_label.c   Sat Aug 18 11:57:57 2018 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_label.c   Sat Aug 18 11:58:59 2018 +0000
@@ -648,7 +648,7 @@
        char *buf;
        size_t buflen;
        int error;
-       uint64_t spare_guid, l2cache_guid;
+       uint64_t spare_guid = 0, l2cache_guid;
        int flags = ZIO_FLAG_CONFIG_WRITER | ZIO_FLAG_CANFAIL;
 
        ASSERT(spa_config_held(spa, SCL_ALL, RW_WRITER) == SCL_ALL);



Home | Main Index | Thread Index | Old Index