View | Details | Raw Unified | Return to bug 209428 | Differences between
and this patch

Collapse All | Expand All

(-)if_vtnet.c (-5 / +7 lines)
Lines 323-333 Link Here
323
		break;
323
		break;
324
	case MOD_QUIESCE:
324
	case MOD_QUIESCE:
325
	case MOD_UNLOAD:
325
	case MOD_UNLOAD:
326
		if (uma_zone_get_cur(vtnet_tx_header_zone) > 0)
326
                if (vtnet_tx_header_zone) {
327
			error = EBUSY;
327
			if (uma_zone_get_cur(vtnet_tx_header_zone) > 0)
328
		else if (type == MOD_UNLOAD) {
328
				error = EBUSY;
329
			uma_zdestroy(vtnet_tx_header_zone);
329
			else if (type == MOD_UNLOAD) {
330
			vtnet_tx_header_zone = NULL;
330
				uma_zdestroy(vtnet_tx_header_zone);
331
				vtnet_tx_header_zone = NULL;
332
			}
331
		}
333
		}
332
		break;
334
		break;
333
	case MOD_SHUTDOWN:
335
	case MOD_SHUTDOWN:

Return to bug 209428