Merge tag 'platform-drivers-x86-v5.14-3' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / fs / cifs / smb1ops.c
index e31b939..3b83839 100644 (file)
@@ -926,9 +926,7 @@ cifs_unix_dfs_readlink(const unsigned int xid, struct cifs_tcon *tcon,
                          0);
 
        if (!rc) {
-               *symlinkinfo = kstrndup(referral.node_name,
-                                       strlen(referral.node_name),
-                                       GFP_KERNEL);
+               *symlinkinfo = kstrdup(referral.node_name, GFP_KERNEL);
                free_dfs_info_param(&referral);
                if (!*symlinkinfo)
                        rc = -ENOMEM;
@@ -1027,7 +1025,7 @@ cifs_can_echo(struct TCP_Server_Info *server)
 static int
 cifs_make_node(unsigned int xid, struct inode *inode,
               struct dentry *dentry, struct cifs_tcon *tcon,
-              char *full_path, umode_t mode, dev_t dev)
+              const char *full_path, umode_t mode, dev_t dev)
 {
        struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb);
        struct inode *newinode = NULL;