connect.c (9b2ee27e8de59257f4482b94b55cc7b18425f440) connect.c (ba55f8a995f6badf7f3288a900e3ede006bf4cbd)
1// SPDX-License-Identifier: LGPL-2.1
2/*
3 *
4 * Copyright (C) International Business Machines Corp., 2002,2011
5 * Author(s): Steve French (sfrench@us.ibm.com)
6 *
7 */
8#include <linux/fs.h>

--- 3967 unchanged lines hidden (view full) ---

3976 /* krb5 is special, since we don't need username or pw */
3977 if (ctx->sectype == Kerberos)
3978 return 0;
3979
3980 return cifs_set_cifscreds(ctx, ses);
3981}
3982
3983static struct cifs_tcon *
1// SPDX-License-Identifier: LGPL-2.1
2/*
3 *
4 * Copyright (C) International Business Machines Corp., 2002,2011
5 * Author(s): Steve French (sfrench@us.ibm.com)
6 *
7 */
8#include <linux/fs.h>

--- 3967 unchanged lines hidden (view full) ---

3976 /* krb5 is special, since we don't need username or pw */
3977 if (ctx->sectype == Kerberos)
3978 return 0;
3979
3980 return cifs_set_cifscreds(ctx, ses);
3981}
3982
3983static struct cifs_tcon *
3984cifs_construct_tcon(struct cifs_sb_info *cifs_sb, kuid_t fsuid)
3984__cifs_construct_tcon(struct cifs_sb_info *cifs_sb, kuid_t fsuid)
3985{
3986 int rc;
3987 struct cifs_tcon *master_tcon = cifs_sb_master_tcon(cifs_sb);
3988 struct cifs_ses *ses;
3989 struct cifs_tcon *tcon = NULL;
3990 struct smb3_fs_context *ctx;
3991 char *origin_fullpath = NULL;
3992

--- 81 unchanged lines hidden (view full) ---

4074 kfree(ctx->username);
4075 kfree_sensitive(ctx->password);
4076 kfree(origin_fullpath);
4077 kfree(ctx);
4078
4079 return tcon;
4080}
4081
3985{
3986 int rc;
3987 struct cifs_tcon *master_tcon = cifs_sb_master_tcon(cifs_sb);
3988 struct cifs_ses *ses;
3989 struct cifs_tcon *tcon = NULL;
3990 struct smb3_fs_context *ctx;
3991 char *origin_fullpath = NULL;
3992

--- 81 unchanged lines hidden (view full) ---

4074 kfree(ctx->username);
4075 kfree_sensitive(ctx->password);
4076 kfree(origin_fullpath);
4077 kfree(ctx);
4078
4079 return tcon;
4080}
4081
4082static struct cifs_tcon *
4083cifs_construct_tcon(struct cifs_sb_info *cifs_sb, kuid_t fsuid)
4084{
4085 struct cifs_tcon *ret;
4086
4087 cifs_mount_lock();
4088 ret = __cifs_construct_tcon(cifs_sb, fsuid);
4089 cifs_mount_unlock();
4090 return ret;
4091}
4092
4082struct cifs_tcon *
4083cifs_sb_master_tcon(struct cifs_sb_info *cifs_sb)
4084{
4085 return tlink_tcon(cifs_sb_master_tlink(cifs_sb));
4086}
4087
4088/* find and return a tlink with given uid */
4089static struct tcon_link *

--- 219 unchanged lines hidden ---
4093struct cifs_tcon *
4094cifs_sb_master_tcon(struct cifs_sb_info *cifs_sb)
4095{
4096 return tlink_tcon(cifs_sb_master_tlink(cifs_sb));
4097}
4098
4099/* find and return a tlink with given uid */
4100static struct tcon_link *

--- 219 unchanged lines hidden ---