]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: client: improve error message when creating SMB session
authorPaulo Alcantara <pc@manguebit.org>
Thu, 4 Dec 2025 18:06:24 +0000 (15:06 -0300)
committerSteve French <stfrench@microsoft.com>
Fri, 5 Dec 2025 23:40:38 +0000 (17:40 -0600)
commita8fce7c807b13be5ccefe8f93528c255d4669d73
tree1385ab1c7b670df914bc24262c7e41713f183263
parent855982a52ff7d188188f0ecf86c2ce95957202c6
smb: client: improve error message when creating SMB session

When failing to create a new SMB session with 'sec=krb5' for example,
the following error message isn't very useful

CIFS: VFS: \\srv Send error in SessSetup = -126

Improve it by printing the following instead on dmesg

CIFS: VFS: \\srv failed to create a new SMB session with Kerberos: -126

Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Cc: Pierguido Lambri <plambri@redhat.com>
Reviewed-by: David Howells <dhowells@redhat.com>
Cc: linux-cifs@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c