summaryrefslogtreecommitdiff
path: root/usr/src/uts/common
diff options
context:
space:
mode:
authorBryan Cantrill <bryan@joyent.com>2011-11-04 05:24:44 +0000
committerBryan Cantrill <bryan@joyent.com>2011-11-04 05:24:44 +0000
commita482f1f76a84c8f5a013981545322dda32ae8462 (patch)
tree0dd3a3cdfa12598816d1bf71b1fc4d358b3d7e29 /usr/src/uts/common
parent41487fda71fcbb88300e12a253a558194fde1fec (diff)
downloadillumos-joyent-a482f1f76a84c8f5a013981545322dda32ae8462.tar.gz
OS-676 debug kernel blew assertion in dls_devnet_stat_create()
Diffstat (limited to 'usr/src/uts/common')
-rw-r--r--usr/src/uts/common/io/dls/dls_mgmt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/dls/dls_mgmt.c b/usr/src/uts/common/io/dls/dls_mgmt.c
index bb4d431ef0..5fa37e0a8a 100644
--- a/usr/src/uts/common/io/dls/dls_mgmt.c
+++ b/usr/src/uts/common/io/dls/dls_mgmt.c
@@ -1007,9 +1007,11 @@ dls_devnet_unset(const char *macname, datalink_id_t *id, boolean_t wait)
ddp->dd_ref--;
*id = ddp->dd_linkid;
- if (ddp->dd_zid != GLOBAL_ZONEID)
+ if (ddp->dd_zid != GLOBAL_ZONEID) {
+ dls_devnet_stat_destroy(ddp, ddp->dd_zid);
(void) i_dls_devnet_setzid(ddp, GLOBAL_ZONEID, B_FALSE,
B_FALSE);
+ }
/*
* Remove this dls_devnet_t from the hash table.