Author: delphij Date: Tue Apr 16 19:25:41 2013 New Revision: 249559 URL: http://svnweb.freebsd.org/changeset/base/249559
Log: Don't leak lock when returning. PR: kern/177888 Submitted by: Sven-Thorsten Dietrich <sven vyatta com> MFC after: 1 week Modified: head/sys/netinet/ip_mroute.c Modified: head/sys/netinet/ip_mroute.c ============================================================================== --- head/sys/netinet/ip_mroute.c Tue Apr 16 19:19:14 2013 (r249558) +++ head/sys/netinet/ip_mroute.c Tue Apr 16 19:25:41 2013 (r249559) @@ -824,6 +824,7 @@ set_api_config(uint32_t *apival) for (i = 0; i < mfchashsize; i++) { if (LIST_FIRST(&V_mfchashtbl[i]) != NULL) { + MFC_UNLOCK(); *apival = 0; return EPERM; } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"