Date: Tue, 16 Dec 2008 00:20:49 +0000 (UTC) From: Kip Macy <kmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186150 - in head/sys: netinet netinet6 Message-ID: <200812160020.mBG0Knjp020889@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812160020.mBG0Knjp020889>