From owner-svn-src-head@FreeBSD.ORG Tue Dec 16 00:20:49 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86D731065676; Tue, 16 Dec 2008 00:20:49 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7361B8FC1A; Tue, 16 Dec 2008 00:20:49 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBG0KnYN020891; Tue, 16 Dec 2008 00:20:49 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBG0Knjp020889; Tue, 16 Dec 2008 00:20:49 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <200812160020.mBG0Knjp020889@svn.freebsd.org> From: Kip Macy Date: Tue, 16 Dec 2008 00:20:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186150 - in head/sys: netinet netinet6 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 00:20:49 -0000 Author: kmacy Date: Tue Dec 16 00:20:49 2008 New Revision: 186150 URL: http://svn.freebsd.org/changeset/base/186150 Log: unlock and destroy an llentry's lock before freeing Found by: sam Modified: head/sys/netinet/in.c head/sys/netinet6/in6.c Modified: head/sys/netinet/in.c ============================================================================== --- head/sys/netinet/in.c Tue Dec 16 00:20:15 2008 (r186149) +++ head/sys/netinet/in.c Tue Dec 16 00:20:49 2008 (r186150) @@ -1060,6 +1060,8 @@ in_lltable_new(const struct sockaddr *l3 static void in_lltable_free(struct lltable *llt, struct llentry *lle) { + LLE_WUNLOCK(lle); + LLE_LOCK_DESTROY(lle); free(lle, M_LLTABLE); } Modified: head/sys/netinet6/in6.c ============================================================================== --- head/sys/netinet6/in6.c Tue Dec 16 00:20:15 2008 (r186149) +++ head/sys/netinet6/in6.c Tue Dec 16 00:20:49 2008 (r186150) @@ -2115,6 +2115,8 @@ in6_lltable_new(const struct sockaddr *l static void in6_lltable_free(struct lltable *llt, struct llentry *lle) { + LLE_WUNLOCK(lle); + LLE_LOCK_DESTROY(lle); free(lle, M_LLTABLE); }