Merge tag 'idmapped-mounts-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-rpi.git] / fs / cifs / cifsfs.c
index 39e51dc..38534e0 100644 (file)
@@ -470,7 +470,7 @@ cifs_show_cache_flavor(struct seq_file *s, struct cifs_sb_info *cifs_sb)
 static int cifs_show_devname(struct seq_file *m, struct dentry *root)
 {
        struct cifs_sb_info *cifs_sb = CIFS_SB(root->d_sb);
-       char *devname = kstrdup(cifs_sb->ctx->UNC, GFP_KERNEL);
+       char *devname = kstrdup(cifs_sb->ctx->source, GFP_KERNEL);
 
        if (devname == NULL)
                seq_puts(m, "none");
@@ -823,7 +823,7 @@ cifs_smb3_do_mount(struct file_system_type *fs_type,
                goto out;
        }
 
-       rc = cifs_setup_volume_info(cifs_sb->ctx);
+       rc = cifs_setup_volume_info(cifs_sb->ctx, NULL, old_ctx->UNC);
        if (rc) {
                root = ERR_PTR(rc);
                goto out;