Fix typo when deregistering the VLAN unconfig event handler

Submitted by:	Masao Uebayashi <uebayasi@tombiinc.com>
MFC after:	3 days
This commit is contained in:
bryanv 2015-06-13 16:13:31 +00:00
parent 07ac2db9a6
commit 9c7d3132bf

View File

@ -443,7 +443,7 @@ vtnet_detach(device_t dev)
sc->vtnet_vlan_attach = NULL;
}
if (sc->vtnet_vlan_detach != NULL) {
EVENTHANDLER_DEREGISTER(vlan_unconfg, sc->vtnet_vlan_detach);
EVENTHANDLER_DEREGISTER(vlan_unconfig, sc->vtnet_vlan_detach);
sc->vtnet_vlan_detach = NULL;
}