fix kvprintf panic in attach routine
This commit is contained in:
parent
addd3a5be5
commit
43c95a2d2a
@ -29,7 +29,7 @@
|
||||
*
|
||||
* $FreeBSD$
|
||||
*
|
||||
* last edit-date: [Fri Jan 12 15:43:51 2001]
|
||||
* last edit-date: [Wed Oct 24 16:04:53 2001]
|
||||
*
|
||||
*---------------------------------------------------------------------------*
|
||||
*
|
||||
@ -366,12 +366,7 @@ i4biprattach()
|
||||
sc->sc_dialresp = DSTAT_NONE; /* no response */
|
||||
sc->sc_lastdialresp = DSTAT_NONE;
|
||||
|
||||
#if defined(__FreeBSD_version) && ((__FreeBSD_version >= 500009) || (410000 <= __FreeBSD_version && __FreeBSD_version < 500000))
|
||||
/* do not call bpfattach in ether_ifattach */
|
||||
ether_ifattach(&sc->sc_if, 0);
|
||||
#else
|
||||
if_attach(&sc->sc_if);
|
||||
#endif
|
||||
|
||||
#if NBPFILTER > 0 || NBPF > 0
|
||||
#ifdef __FreeBSD__
|
||||
|
Loading…
Reference in New Issue
Block a user