Commit 6c4ce4b9 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] Re: [BUGFIX] handling bad inodes in 2.4.x kernels (fwd)

here's much simpler fix (both 2.4 and 2.5):
parent eac94688
......@@ -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)
......
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