lkml.org 
[lkml]   [2001]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] unpaired lock/unlock_kernel in fs/locks.c
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.
*/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.030 / U:1.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site