svn commit: r186150 - in head/sys: netinet netinet6

Kip Macy kmacy at FreeBSD.org
Tue Dec 16 00:20:49 UTC 2008


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);
 }
 


More information about the svn-src-all mailing list