aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/hostfs/hostfs_kern.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c
index 5c57654927a6..90e46cd752fe 100644
--- a/fs/hostfs/hostfs_kern.c
+++ b/fs/hostfs/hostfs_kern.c
@@ -959,10 +959,11 @@ static int hostfs_fill_sb_common(struct super_block *sb, void *d, int silent)
959 959
960 if (S_ISLNK(root_inode->i_mode)) { 960 if (S_ISLNK(root_inode->i_mode)) {
961 char *name = follow_link(host_root_path); 961 char *name = follow_link(host_root_path);
962 if (IS_ERR(name)) 962 if (IS_ERR(name)) {
963 err = PTR_ERR(name); 963 err = PTR_ERR(name);
964 else 964 goto out_put;
965 err = read_name(root_inode, name); 965 }
966 err = read_name(root_inode, name);
966 kfree(name); 967 kfree(name);
967 if (err) 968 if (err)
968 goto out_put; 969 goto out_put;