smb client mount fix

-----BEGIN PGP SIGNATURE-----
 
 iQGzBAABCgAdFiEE6fsu8pdIjtWE/DpLiiy9cAdyT1EFAmknmAUACgkQiiy9cAdy
 T1FamAv+NWPndWOfpABbaE8EIQLnrhV3WVzDGWZxfnNp451DSPl9IZmQC7vNq5GD
 1dtR8o1JBtRgpXqypZ88GFMku+iXMBFQN+2x0TPwXcDlPM9F9s9ORab2iovQ+cmc
 G53blZiHO7UpWznC8qZVmgT8aK7oEs8zE5tdARNqe/EjO7RRrF7fCZ8BwBKMNO1X
 rVZWceJ0l8ohX7/DzhsdAXly/tkH+Z1iARtxdQOH6FP1HGYMYun29dwxf69ezMTq
 yt/EE0bausWV/3XB+dnkKQSq8OHdQcFbA6GNqYsNqA+KJRS+GxcWqZwE7pT2N9V6
 fBYQgmGrtzmPC77W+HL43WEP1heQaYZuKIpy0bXY1pufarCoffYUI1zCvdDOoc5z
 nTJzFoWTQ+Wrgi/3Xe/9DgjT5jXXP4Nit+vsEzDgaCEgbxIQzLl6MeW2cU4SiHGX
 tNHIMeYzNxwNTmNGH28f6Y5Z/w6G0gmiOSHHPnNzcCp6Xh5kpOBogssOcdU2tdsT
 ttVs0qac
 =guGI
 -----END PGP SIGNATURE-----

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

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()
This commit is contained in:
Linus Torvalds 2025-11-26 20:22:20 -08:00
commit 765e56e41a

View File

@ -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);