diff options
author | Paulo Alcantara <pc@cjr.nz> | 2022-12-16 22:03:41 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-18 11:30:43 +0100 |
commit | 664825040e6307c0f3aace33d160f3a5d2778c94 (patch) | |
tree | 700fb7aae4b194ab490361ff4e38463448e4e6f5 /block/Kconfig.iosched | |
parent | 8f537a1282cd877f132643ef8f9e9d6032f90025 (diff) | |
download | linux-stable-664825040e6307c0f3aace33d160f3a5d2778c94.tar.gz linux-stable-664825040e6307c0f3aace33d160f3a5d2778c94.tar.bz2 linux-stable-664825040e6307c0f3aace33d160f3a5d2778c94.zip |
cifs: fix confusing debug message
commit a85ceafd41927e41a4103d228a993df7edd8823b upstream.
Since rc was initialised to -ENOMEM in cifs_get_smb_ses(), when an
existing smb session was found, free_xid() would be called and then
print
CIFS: fs/cifs/connect.c: Existing tcp session with server found
CIFS: fs/cifs/connect.c: VFS: in cifs_get_smb_ses as Xid: 44 with uid: 0
CIFS: fs/cifs/connect.c: Existing smb sess found (status=1)
CIFS: fs/cifs/connect.c: VFS: leaving cifs_get_smb_ses (xid = 44) rc = -12
Fix this by initialising rc to 0 and then let free_xid() print this
instead
CIFS: fs/cifs/connect.c: Existing tcp session with server found
CIFS: fs/cifs/connect.c: VFS: in cifs_get_smb_ses as Xid: 14 with uid: 0
CIFS: fs/cifs/connect.c: Existing smb sess found (status=1)
CIFS: fs/cifs/connect.c: VFS: leaving cifs_get_smb_ses (xid = 14) rc = 0
Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block/Kconfig.iosched')
0 files changed, 0 insertions, 0 deletions