projects/linux·commit 765e56e4

Merge tag 'v6.18rc7-SMB-client-fix' of git://git.samba.org/sfrench/cifs-2.6

765e56e4 · Linus Torvalds <[email protected]> · 2025-11-26 20:22:20 -08:00

Pull smb client fix from Steve French:
 "smb client multiuser (with cifscreds) mount fix"

* tag 'v6.18rc7-SMB-client-fix' of git://git.samba.org/sfrench/cifs-2.6:
  smb: client: fix memory leak in cifs_construct_tcon()
Commit
765e56e41a5af2d456ddda6cbd617b9d3295ab4e
Parents
4941a177 · 3184b6a5

Merge commit. Changes below are compared with the first parent: 4941a177.

Changes

1 files changed · +1 −0

FileStatusAddDelContent
fs/smb/client/connect.cmodified+1−0View file

fs/smb/client/connect.c

View file
diff --git a/fs/smb/client/connect.c b/fs/smb/client/connect.c
index 55cb4b0..2f94d93 100644
--- a/fs/smb/client/connect.c
+++ b/fs/smb/client/connect.c
@@ -4451,6 +4451,7 @@ cifs_construct_tcon(struct cifs_sb_info *cifs_sb, kuid_t fsuid)
out:
kfree(ctx->username);
+ kfree(ctx->domainname);
kfree_sensitive(ctx->password);
kfree(origin_fullpath);
kfree(ctx);