public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] HPFS fix return without releasing BKL
@ 2002-07-11  7:28 Dave Hansen
  0 siblings, 0 replies; only message in thread
From: Dave Hansen @ 2002-07-11  7:28 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: mikulas, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 189 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.
-- 
Dave Hansen
haveblue@us.ibm.com

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

--- linux-2.5.25-clean/fs/hpfs/dir.c	Thu Jun 20 15:53:48 2002
+++ linux/fs/hpfs/dir.c	Thu Jul 11 00:16:55 2002
@@ -211,7 +211,10 @@
 
 	lock_kernel();
 	if ((err = hpfs_chk_name((char *)name, &len))) {
-		if (err == -ENAMETOOLONG) return ERR_PTR(-ENAMETOOLONG);
+		if (err == -ENAMETOOLONG) {
+			unlock_kernel();
+			return ERR_PTR(-ENAMETOOLONG);
+		}
 		goto end_add;
 	}
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-11  7:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-11  7:28 [PATCH] HPFS fix return without releasing BKL Dave Hansen

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