summaryrefslogtreecommitdiffstats
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 6f2439b508b5..062c2375549a 100644
--- a/fs/cifs/link.c
+++ b/fs/cifs/link.c
@@ -627,7 +627,8 @@ cifs_hl_exit:
627} 627}
628 628
629const char * 629const char *
630cifs_get_link(struct dentry *direntry, struct inode *inode, void **cookie) 630cifs_get_link(struct dentry *direntry, struct inode *inode,
631 struct delayed_call *done)
631{ 632{
632 int rc = -ENOMEM; 633 int rc = -ENOMEM;
633 unsigned int xid; 634 unsigned int xid;
@@ -680,7 +681,8 @@ cifs_get_link(struct dentry *direntry, struct inode *inode, void **cookie)
680 kfree(target_path); 681 kfree(target_path);
681 return ERR_PTR(rc); 682 return ERR_PTR(rc);
682 } 683 }
683 return *cookie = target_path; 684 set_delayed_call(done, kfree_link, target_path);
685 return target_path;
684} 686}
685 687
686int 688int