[PATCH] HPFS fix return without releasing BKL

Dave Hansen (haveblue@us.ibm.com)
Thu, 11 Jul 2002 00:28:24 -0700


This is a multi-part message in MIME format.
--------------060606010003060606000907
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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

--------------060606010003060606000907 Content-Type: text/plain; name="hpfs-bkl_ret-2.5.25-0.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="hpfs-bkl_ret-2.5.25-0.patch"

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

--------------060606010003060606000907--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/