diff options
author | Garrett D'Amore <garrett@damore.org> | 2022-03-05 11:50:41 -0800 |
---|---|---|
committer | Garrett D'Amore <garrett@damore.org> | 2022-06-29 19:18:49 -0400 |
commit | d5d1522f61a203e5d41826580ab94c4ffe4c8a37 (patch) | |
tree | 771a7087624e689e735474f37f79c191615e166c | |
parent | 08848a83914f59a64a6b5a37f068bbb69b0604b0 (diff) | |
download | illumos-joyent-d5d1522f61a203e5d41826580ab94c4ffe4c8a37.tar.gz |
14766 panic when destroying a vnic
Reviewed by: Dan McDonald <danmcd@mnx.io>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Jerry Jelinek <gjelinek@gmail.com>
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Jim Johnson <jjohnson@racktopsystems.com>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
-rw-r--r-- | usr/src/uts/common/io/vnic/vnic_dev.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/src/uts/common/io/vnic/vnic_dev.c b/usr/src/uts/common/io/vnic/vnic_dev.c index 7f2c79cb7f..73a76d9721 100644 --- a/usr/src/uts/common/io/vnic/vnic_dev.c +++ b/usr/src/uts/common/io/vnic/vnic_dev.c @@ -23,6 +23,7 @@ * Copyright 2018 Joyent, Inc. * Copyright 2016 OmniTI Computer Consulting, Inc. All rights reserved. * Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + * Copyright 2022 RackTop Systems, Inc. */ #include <sys/types.h> @@ -571,8 +572,6 @@ vnic_dev_create(datalink_id_t vnic_id, datalink_id_t linkid, err = dls_devnet_create(vnic->vn_mh, vnic->vn_id, crgetzoneid(credp)); if (err != 0) { - VERIFY(is_anchor || mac_margin_remove(vnic->vn_lower_mh, - vnic->vn_margin) == 0); if (!is_anchor) { VERIFY(mac_mtu_remove(vnic->vn_lower_mh, vnic->vn_mtu) == 0); |