Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Aug 2005 14:39:47 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/net if.c
Message-ID:  <200508041439.j74Edl9D092184@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2005-08-04 14:39:47 UTC

  FreeBSD src repository

  Modified files:
    sys/net              if.c 
  Log:
  Initialize the if_addr mutex in if_alloc() rather than waiting until
  if_attach().  This allows ethernet drivers to use it in their routines
  to program their MAC filters before ether_ifattach() is called (de(4) is
  one such driver).  Also, the if_addr mutex is destroyed in if_free()
  rather than if_detach(), so there was another potential bug in that a
  driver that failed during attach and called if_free() without having
  called ether_ifattach() would have tried to destroy an uninitialized mutex.
  
  Reported by:    Holm Tiffe holm at freibergnet dot de
  Discussed with: rwatson
  
  Revision  Changes    Path
  1.240     +1 -1      src/sys/net/if.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508041439.j74Edl9D092184>