Commit 166d1bfb authored by Dave Hansen's avatar Dave Hansen Committed by Linus Torvalds

[PATCH] AFFS 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.  1 more coming...

Not tested (Greg, please don't hurt me :p )
parent a2b5891a
......@@ -345,8 +345,10 @@ affs_rmdir(struct inode *dir, struct dentry *dentry)
lock_kernel();
/* WTF??? */
if (!dentry->d_inode)
if (!dentry->d_inode) {
unlock_kernel();
return -ENOENT;
}
res = affs_remove_header(dentry);
unlock_kernel();
......
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