Commit a2b5891a authored by Dave Hansen's avatar Dave Hansen Committed by Linus Torvalds

[PATCH] HPFS fix return without releasing BKL

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.
parent 897575e3
......@@ -211,7 +211,10 @@ struct dentry *hpfs_lookup(struct inode *dir, struct dentry *dentry)
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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment