diff options
author | evanl <none@none> | 2006-06-19 08:27:14 -0700 |
---|---|---|
committer | evanl <none@none> | 2006-06-19 08:27:14 -0700 |
commit | 1178fdd0a87f2abcf3d0af2aebc803f1189fb7f6 (patch) | |
tree | e1f99d681beff8e86b5cf6656948b6ec484043ea /usr/src/uts/common/fs/autofs/auto_subr.c | |
parent | 24455bde2c3380715bd2fd43aeece8eeaa8f3153 (diff) | |
download | illumos-joyent-1178fdd0a87f2abcf3d0af2aebc803f1189fb7f6.tar.gz |
6440068 can no longer shutdown zone
Diffstat (limited to 'usr/src/uts/common/fs/autofs/auto_subr.c')
-rw-r--r-- | usr/src/uts/common/fs/autofs/auto_subr.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr/src/uts/common/fs/autofs/auto_subr.c b/usr/src/uts/common/fs/autofs/auto_subr.c index 84be40ef9e..2447cfde95 100644 --- a/usr/src/uts/common/fs/autofs/auto_subr.c +++ b/usr/src/uts/common/fs/autofs/auto_subr.c @@ -333,15 +333,11 @@ auto_calldaemon( door_handle_t dh; XDR xdrarg, xdrres; struct autofs_globals *fngp = NULL; - zone_t *autofs_zone; void *orig_resp = NULL; int orig_reslen = reslen; autofs_door_args_t *xdr_argsp; int xdr_len = 0; - autofs_zone = zone_find_by_id(zoneid); - - /* * We know that the current thread is doing work on * behalf of its own zone, so it's ok to use @@ -358,10 +354,10 @@ auto_calldaemon( return (ECONNREFUSED); } - if ((fngp = zone_getspecific(autofs_key, autofs_zone)) == + if ((fngp = zone_getspecific(autofs_key, curproc->p_zone)) == NULL) { fngp = autofs_zone_init(); - (void) zone_setspecific(autofs_key, autofs_zone, fngp); + (void) zone_setspecific(autofs_key, curproc->p_zone, fngp); } ASSERT(fngp != NULL); |