SOLARIS: Do not release NULL root vp on unmount
authorAndrew Deason <adeason@sinenomine.net>
Fri, 29 Jul 2011 21:44:11 +0000 (16:44 -0500)
committerDerrick Brashear <shadow@dementia.org>
Mon, 1 Aug 2011 12:08:35 +0000 (05:08 -0700)
commitb621a2986099488426a026818532a9600db9aeba
tree4e704d4d179e86c484d6b4ca95549840827bc20b
parent6b83ba621b520174dc4679c220888619dc0b44a0
SOLARIS: Do not release NULL root vp on unmount

When we unmount, and afs_globalVp is NULL (e.g. because root.afs was
unavailable when the client was started), we will panic the machine if
we try to release it. So, if afs_globalVp is NULL when we hit our
unmount handler, don't touch it.

Reported by Andy Cobaugh.

Change-Id: I4e5869237e24da320afc2b7edaf8edca0ab3e4e9
Reviewed-on: http://gerrit.openafs.org/5117
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/SOLARIS/osi_vfsops.c