mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] unpaired lock/unlock_kernel in fs/locks.c
@ 2001-06-16  0:23 Andrey Savochkin
  0 siblings, 0 replies; only message in thread
From: Andrey Savochkin @ 2001-06-16  0:23 UTC (permalink / raw)
  To: linux-kernel, torvalds

Please apply the fix for unpaired lock/unlock_kernel in fs/locks.c

	Andrey

--- fs/locks.c~	Fri Jun 15 17:14:05 2001
+++ fs/locks.c	Fri Jun 15 19:16:31 2001
@@ -856,7 +856,7 @@
 	new_fl2 = locks_alloc_lock(0);
 	error = -ENOLCK; /* "no luck" */
 	if (!(new_fl && new_fl2))
-		goto out;
+		goto out_nolock;
 
 	lock_kernel();
 	if (caller->fl_type != F_UNLCK) {
@@ -1004,6 +1004,7 @@
 	}
 out:
 	unlock_kernel();
+out_nolock:
 	/*
 	 * Free any unused locks.
 	 */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-16  0:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-16  0:23 [patch] unpaired lock/unlock_kernel in fs/locks.c Andrey Savochkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®