summaryrefslogtreecommitdiff
path: root/usr/src/lib/libsmbfs
diff options
context:
space:
mode:
authorGordon Ross <gwr@nexenta.com>2012-02-04 15:55:57 -0500
committerGordon Ross <gwr@nexenta.com>2012-02-04 15:55:57 -0500
commit3d804dabd641ca3bac12a320ebf63c36c6f3eba0 (patch)
treec5e1ad19f7e526e6e780a4e8ee87b566a5eb3b18 /usr/src/lib/libsmbfs
parent05c998d610ab634d0b9d3f4c6e90d7e85f70b31f (diff)
downloadillumos-joyent-3d804dabd641ca3bac12a320ebf63c36c6f3eba0.tar.gz
2041 panic in nsmb_close
Reviewed by: Dan McDonald <danmcd@nexenta.com> Reviewed by: Richard Elling <richard.elling@richardelling.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/lib/libsmbfs')
-rw-r--r--usr/src/lib/libsmbfs/smb/iod_wk.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/src/lib/libsmbfs/smb/iod_wk.c b/usr/src/lib/libsmbfs/smb/iod_wk.c
index 89f3eb3fa0..53f3c515be 100644
--- a/usr/src/lib/libsmbfs/smb/iod_wk.c
+++ b/usr/src/lib/libsmbfs/smb/iod_wk.c
@@ -20,6 +20,7 @@
*/
/*
+ * Copyright 2012 Nexenta Systems, Inc. All rights reserved.
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -148,6 +149,13 @@ smb_iod_work(smb_ctx_t *ctx)
goto out;
}
vcst = work->wk_out_state;
+ /*
+ * Go ahead and close the transport now,
+ * rather than wait until reconnect to
+ * this server.
+ */
+ close(ctx->ct_tran_fd);
+ ctx->ct_tran_fd = -1;
continue;
case SMBIOD_ST_DEAD: