VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Linus Torvalds <torvalds@g5.osdl.org> 2005-08-19 18:02:56 -0700 committer: Linus Torvalds <torvalds@g5.osdl.org> 2005-08-19 18:02:56 -0700 commit: cc314eef0128a807e50fa03baf2d0abc0647952c parent: 2fb1e3086df9b454538491fba8121298da37cd23
Commit Summary:
Fix nasty ncpfs symlink handling bug.
Diffstat:
1 file changed, 3 insertions, 2 deletions
diff --git a/fs/autofs/symlink.c b/fs/autofs/symlink.c
index f028396f1383..52e8772b066e 100644
--- a/fs/autofs/symlink.c
+++ b/fs/autofs/symlink.c
@@ -12,11 +12,12 @@
 
 #include "autofs_i.h"
 
-static int autofs_follow_link(struct dentry *dentry, struct nameidata *nd)
+/* Nothing to release.. */
+static void *autofs_follow_link(struct dentry *dentry, struct nameidata *nd)
 {
 	char *s=((struct autofs_symlink *)dentry->d_inode->u.generic_ip)->data;
 	nd_set_link(nd, s);
-	return 0;
+	return NULL;
 }
 
 struct inode_operations autofs_symlink_inode_operations = {