FreeBSD Bugzilla – Attachment 170182 Details for
Bug 209428
if_vtnet(4) panics when doing kldunload if_vtnet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
possible fix
virtio-net-unload.diff (text/plain), 666 bytes, created by
Roman Bogorodskiy
on 2016-05-10 15:45:32 UTC
(
hide
)
Description:
possible fix
Filename:
MIME Type:
Creator:
Roman Bogorodskiy
Created:
2016-05-10 15:45:32 UTC
Size:
666 bytes
patch
obsolete
>Index: if_vtnet.c >=================================================================== >--- if_vtnet.c (revision 299234) >+++ if_vtnet.c (working copy) >@@ -323,11 +323,13 @@ > break; > case MOD_QUIESCE: > case MOD_UNLOAD: >- if (uma_zone_get_cur(vtnet_tx_header_zone) > 0) >- error = EBUSY; >- else if (type == MOD_UNLOAD) { >- uma_zdestroy(vtnet_tx_header_zone); >- vtnet_tx_header_zone = NULL; >+ if (vtnet_tx_header_zone) { >+ if (uma_zone_get_cur(vtnet_tx_header_zone) > 0) >+ error = EBUSY; >+ else if (type == MOD_UNLOAD) { >+ uma_zdestroy(vtnet_tx_header_zone); >+ vtnet_tx_header_zone = NULL; >+ } > } > break; > case MOD_SHUTDOWN:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 209428
:
170182
|
170217
|
170227
|
170229
|
170230