--- linux-2.5.25-clean/fs/affs/namei.c Thu Jun 20 15:53:49 2002 +++ linux/fs/affs/namei.c Thu Jul 11 00:15:16 2002 @@ -345,8 +345,10 @@ lock_kernel(); /* WTF??? */ - if (!dentry->d_inode) + if (!dentry->d_inode) { + unlock_kernel(); return -ENOENT; + } res = affs_remove_header(dentry); unlock_kernel();