From owner-cvs-all@FreeBSD.ORG Mon Sep 12 13:38:36 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE44B16A41F; Mon, 12 Sep 2005 13:38:36 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38E6843D45; Mon, 12 Sep 2005 13:38:36 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j8CDcaG5050031; Mon, 12 Sep 2005 13:38:36 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j8CDcahR050030; Mon, 12 Sep 2005 13:38:36 GMT (envelope-from glebius) Message-Id: <200509121338.j8CDcahR050030@repoman.freebsd.org> From: Gleb Smirnoff Date: Mon, 12 Sep 2005 13:38:36 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Cc: Subject: cvs commit: src/sys/netinet ip_carp.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2005 13:38:36 -0000 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