Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / kernel_patches / patches / revalide-special-oops-2.6.4.suse.patch
1 --- linux-2.6.4-51.0.orig/fs/namei.c    2004-04-06 22:16:14.000000000 +0300
2 +++ linux-2.6.4-51.0/fs/namei.c 2004-04-09 16:07:42.856930416 +0300
3 @@ -749,10 +749,18 @@ last_component:
4                                 nd->flags |= LOOKUP_LAST;
5                                 err = revalidate_special(nd);
6                                 nd->flags &= ~LOOKUP_LAST;
7 -                               if (err)
8 +                               if (err)
9                                         break;
10                                 goto return_reval;
11                 }
12 +               
13 +               if (err) {
14 +                       if (!nd->dentry->d_inode)
15 +                               err = -ENOENT;
16 +                       
17 +                       goto return_err;                        
18 +               }
19 +               
20                 if (nd->dentry->d_op && nd->dentry->d_op->d_hash) {
21                         err = nd->dentry->d_op->d_hash(nd->dentry, &this);
22                         if (err < 0)