summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/fs/autofs/auto_subr.c
diff options
context:
space:
mode:
authorevanl <none@none>2006-06-19 08:27:14 -0700
committerevanl <none@none>2006-06-19 08:27:14 -0700
commit1178fdd0a87f2abcf3d0af2aebc803f1189fb7f6 (patch)
treee1f99d681beff8e86b5cf6656948b6ec484043ea /usr/src/uts/common/fs/autofs/auto_subr.c
parent24455bde2c3380715bd2fd43aeece8eeaa8f3153 (diff)
downloadillumos-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.c8
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);