public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Hansen <haveblue@us.ibm.com>
To: Linus Torvalds <torvalds@transmeta.com>
Cc: mikulas@artax.karlin.mff.cuni.cz, linux-kernel@vger.kernel.org
Subject: [PATCH] HPFS fix return without releasing BKL
Date: Thu, 11 Jul 2002 00:28:24 -0700	[thread overview]
Message-ID: <3D2D3398.1030206@us.ibm.com> (raw)

[-- 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;
 	}
 

                 reply	other threads:[~2002-07-11  7:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D2D3398.1030206@us.ibm.com \
    --to=haveblue@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikulas@artax.karlin.mff.cuni.cz \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox