lkml.org 
[lkml]   [2002]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] AFFS fix return without releasing BKL
Linus,
This was found by Dan Carpenter <error27@email.com>, using an smatch
script. Looks to me like like an error caused during all the BKL
pushing. 1 more coming...

Not tested (Greg, please don't hurt me :p )
--
Dave Hansen
haveblue@us.ibm.com
--- linux-2.5.25-clean/fs/affs/namei.c Thu Jun 20 15:53:49 2002
+++ linux/fs/affs/namei.c Thu Jul 11 00:15:16 2002
@@ -345,8 +345,10 @@
lock_kernel();

/* WTF??? */
- if (!dentry->d_inode)
+ if (!dentry->d_inode) {
+ unlock_kernel();
return -ENOENT;
+ }

res = affs_remove_header(dentry);
unlock_kernel();
\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.044 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site