svn commit: r321038 - projects/pnfs-planb-server/sys/fs/nfsserver
Rick Macklem
rmacklem at FreeBSD.org
Sat Jul 15 21:43:42 UTC 2017
Author: rmacklem
Date: Sat Jul 15 21:43:40 2017
New Revision: 321038
URL: https://svnweb.freebsd.org/changeset/base/321038
Log:
Fix a crash that can occur when the DS subdirectories aren't available.
Modified:
projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdstate.c
Modified: projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdstate.c
==============================================================================
--- projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdstate.c Sat Jul 15 21:40:48 2017 (r321037)
+++ projects/pnfs-planb-server/sys/fs/nfsserver/nfs_nfsdstate.c Sat Jul 15 21:43:40 2017 (r321038)
@@ -6599,7 +6599,8 @@ nfsrv_freedevid(struct nfsdevice *ds)
TAILQ_REMOVE(&nfsrv_devidhead, ds, nfsdev_list);
vrele(ds->nfsdev_dvp);
for (i = 0; i < nfsrv_dsdirsize; i++)
- vrele(ds->nfsdev_dsdir[i]);
+ if (ds->nfsdev_dsdir[i] != NULL)
+ vrele(ds->nfsdev_dsdir[i]);
free(ds->nfsdev_fileaddr, M_NFSDSTATE);
free(ds->nfsdev_host, M_NFSDSTATE);
free(ds, M_NFSDSTATE);
More information about the svn-src-projects
mailing list