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 Don't try to rele...



details:   https://anonhg.NetBSD.org/src/rev/ce2d953a56ce
branches:  trunk
changeset: 446231:ce2d953a56ce
user:      hannken <hannken%NetBSD.org@localhost>
date:      Wed Nov 28 09:56:40 2018 +0000

description:
Don't try to release a NULL vnode in zfs_netbsd_rename().

diffstat:

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

diffs (13 lines):

diff -r 018c828d42dd -r ce2d953a56ce external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c    Wed Nov 28 09:56:09 2018 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c    Wed Nov 28 09:56:40 2018 +0000
@@ -5467,7 +5467,8 @@
 
        VN_RELE(fdvp);
        VN_RELE(tdvp);
-       VN_RELE(fvp);
+       if (fvp != NULL)
+               VN_RELE(fvp);
        if (tvp != NULL)
                VN_RELE(tvp);
 



Home | Main Index | Thread Index | Old Index