]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Re: [BUGFIX] handling bad inodes in 2.4.x kernels (fwd)
authorAlexander Viro <viro@math.psu.edu>
Mon, 25 Feb 2002 03:34:15 +0000 (19:34 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Mon, 25 Feb 2002 03:34:15 +0000 (19:34 -0800)
here's much simpler fix (both 2.4 and 2.5):

fs/bad_inode.c

index e44c02ac2283195bd0fe10353bc1678fd2c301ef..dd4835c0f45ed3d77894f43f68b862c515b92a70 100644 (file)
@@ -17,9 +17,7 @@
  */
 static int bad_follow_link(struct dentry *dent, struct nameidata *nd)
 {
-       dput(nd->dentry);
-       nd->dentry = dget(dent);
-       return 0;
+       return vfs_follow_link(nd, ERR_PTR(-EIO));
 }
 
 static int return_EIO(void)