Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-02-24 19:34:15 -0800
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-02-24 19:34:15 -0800
commit6c4ce4b9b801c4c05be68a65ee5408536798ddbb (patch)
tree0ad988ec3ab785e402dd99ce852d29326d8ca87a
parenteac94688e46e081de1c3b516ee3595d5d8a7c400 (diff)
[PATCH] Re: [BUGFIX] handling bad inodes in 2.4.x kernels (fwd)
here's much simpler fix (both 2.4 and 2.5):
-rw-r--r--fs/bad_inode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/bad_inode.c b/fs/bad_inode.c
index e44c02ac2283..dd4835c0f45e 100644
--- a/fs/bad_inode.c
+++ b/fs/bad_inode.c
@@ -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)