aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/link.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/link.c')
-rw-r--r--fs/cifs/link.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/cifs/link.c b/fs/cifs/link.c
index e3548f73bdea..6f2439b508b5 100644
--- a/fs/cifs/link.c
+++ b/fs/cifs/link.c
@@ -627,9 +627,8 @@ cifs_hl_exit:
627} 627}
628 628
629const char * 629const char *
630cifs_follow_link(struct dentry *direntry, void **cookie) 630cifs_get_link(struct dentry *direntry, struct inode *inode, void **cookie)
631{ 631{
632 struct inode *inode = d_inode(direntry);
633 int rc = -ENOMEM; 632 int rc = -ENOMEM;
634 unsigned int xid; 633 unsigned int xid;
635 char *full_path = NULL; 634 char *full_path = NULL;
@@ -639,6 +638,9 @@ cifs_follow_link(struct dentry *direntry, void **cookie)
639 struct cifs_tcon *tcon; 638 struct cifs_tcon *tcon;
640 struct TCP_Server_Info *server; 639 struct TCP_Server_Info *server;
641 640
641 if (!direntry)
642 return ERR_PTR(-ECHILD);
643
642 xid = get_xid(); 644 xid = get_xid();
643 645
644 tlink = cifs_sb_tlink(cifs_sb); 646 tlink = cifs_sb_tlink(cifs_sb);