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] HPFS 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.
--
Dave Hansen
haveblue@us.ibm.com
--- 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;
}
\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.033 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site