cvs commit: src/sys/netinet ip_carp.c

Gleb Smirnoff glebius at FreeBSD.org
Mon Sep 12 06:38:36 PDT 2005


glebius     2005-09-12 13:38:36 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_5)
    sys/netinet          ip_carp.c 
  Log:
  MFC 1.31:
    When a carp(4) interface is being destroyed and is in a promiscous mode,
    first interface is detached from parent and then bpfdetach() is called.
    If the interface was the last carp(4) interface attached to parent, then
    the mutex on parent is destroyed. When bpfdetach() calls if_setflags()
    we panic on destroyed mutex.
  
    To prevent the above scenario, clear pointer to parent, when we detach
    ourselves from parent.
  
  Revision  Changes    Path
  1.21.2.5  +1 -0      src/sys/netinet/ip_carp.c


More information about the cvs-src mailing list