Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.6 /fs/locks.c

Filename:/fs/locks.c
Lines Added:2
Lines Deleted:1
Also changed in: (Previous) 2.4.6-pre9  2.4.6-pre8  2.4.6-pre7  2.4.6-pre6  2.4.6-pre5  2.4.6-pre4 
(Following) 2.4.6-ac1  2.4.6-ac2  2.4.6-ac3  2.4.6-ac4  2.4.6-ac5  2.4.7-pre2 

Location
[  2.4.6
  [  fs
     o  locks.c

Patch

diff -u --recursive --new-file v2.4.5/linux/fs/locks.c linux/fs/locks.c
--- v2.4.5/linux/fs/locks.c   Fri Feb  9 11:29:44 2001
+++ linux/fs/locks.c   Sat Jun 16 10:42:53 2001
@@ -857,7 +857,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) {
@@ -1005,6 +1005,7 @@
    }
 out:
    unlock_kernel();
+out_nolock:
    /*
     * Free any unused locks.
     */


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.