[patch] unpaired lock/unlock_kernel in fs/locks.c

From: Andrey Savochkin (saw@saw.sw.com.sg)
Date: Fri Jun 15 2001 - 19:23:33 EST


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/



This archive was generated by hypermail 2b29 : Fri Jun 15 2001 - 21:00:26 EST