Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2012 10:03:52 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r233277 - stable/8/sys/kern
Message-ID:  <201203211003.q2LA3qsQ065928@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Wed Mar 21 10:03:52 2012
New Revision: 233277
URL: http://svn.freebsd.org/changeset/base/233277

Log:
  MFC r224546 (by glebius):
    Don't leak kld_sx lock in kldunloadf().

Modified:
  stable/8/sys/kern/kern_linker.c
Directory Properties:
  stable/8/sys/   (props changed)

Modified: stable/8/sys/kern/kern_linker.c
==============================================================================
--- stable/8/sys/kern/kern_linker.c	Wed Mar 21 09:48:32 2012	(r233276)
+++ stable/8/sys/kern/kern_linker.c	Wed Mar 21 10:03:52 2012	(r233277)
@@ -1111,8 +1111,9 @@ kern_kldunload(struct thread *td, int fi
 		PMC_CALL_HOOK(td, PMC_FN_KLD_UNLOAD, (void *) &pkm);
 		KLD_UNLOCK_READ();
 	} else
-#else
 		KLD_UNLOCK();
+#else
+	KLD_UNLOCK();
 #endif
 	CURVNET_RESTORE();
 	return (error);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203211003.q2LA3qsQ065928>