mirror of
https://github.com/opnsense/src.git
synced 2026-02-16 17:19:56 -05:00
---------------------------- revision 1.27 date: 2005/09/19 03:10:16; author: imp; state: Exp; lines: +3 -2 Make sure that we call if_free(ifp) after bus_teardown_intr. Since we could get an interrupt after we free the ifp, and the interrupt handler depended on the ifp being still alive, this could, in theory, cause a crash. Eliminate this possibility by moving the if_free to after the bus_teardown_intr() call. In fact, this change do nothing for this driver. It is protected from this by cp_destroy variable. This variable also protects driver from initiation of any activity from network stack with disabled intr handler with this change applied. |
||
|---|---|---|
| .. | ||
| cpddk.c | ||
| cpddk.h | ||
| if_cp.c | ||
| ng_cp.h | ||