public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] AFFS fix return without releasing BKL
@ 2002-07-11  7:28 Dave Hansen
  2002-07-11 20:44 ` Roman Zippel
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Hansen @ 2002-07-11  7:28 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: zippel, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 252 bytes --]

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

[-- Attachment #2: affs-bkl_ret-2.5.25-0.patch --]
[-- Type: text/plain, Size: 320 bytes --]

--- 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();

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-07-12 19:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-11  7:28 [PATCH] AFFS fix return without releasing BKL Dave Hansen
2002-07-11 20:44 ` Roman Zippel
2002-07-12 19:06   ` Dave Hansen

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