On Sun, Sep 23, 2001 at 07:32:18PM -0400, Matthew N. Dodd wrote:
> On Sun, 23 Sep 2001, Jonathan Lemon wrote:
> > >sys/net/if.c and bpf.c have problems with if_detach() and
> > >bpfdetach() when they are called with a struct ifnet that has not had
> > >if_attach() and bpfattach() called on it. Null pointer reference ->
> > >*boom* etc.
> >
> > I would say that this is to be expected. Why is the system calling
> > the detach functions on a device that isn't attached in the first
> > place?
>
> Driver mistake, but I see no reason why these functions shouldn't handle
> this gracefully.
Because all it does is conceal the original error. Better to catch
the mistake and fix the driver than paper it over.
--
Jonathan
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message