Paulo Alcantara
0f4dfff7dc
cifs: fix confusing debug message
...
commit a85ceafd41 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 >
2023-01-07 12:07:37 +01:00
..
2022-06-25 11:44:57 +02:00
2019-08-06 18:29:35 +02:00
2020-09-12 11:47:39 +02:00
2020-01-29 10:24:34 +01:00
2019-12-21 10:40:46 +01:00
2018-12-01 09:44:19 +01:00
2022-12-08 11:15:41 +01:00
2020-11-10 10:24:00 +01:00
2022-10-26 13:15:35 +02:00
2023-01-07 12:07:37 +01:00
2019-08-06 18:29:38 +02:00
2022-03-02 11:32:03 +01:00
2018-11-13 11:17:03 -08:00
2021-07-20 16:21:11 +02:00
2019-05-08 07:19:10 +02:00
2019-03-23 13:19:47 +01:00
2022-10-26 13:15:37 +02:00
2021-05-26 11:29:07 +02:00
2020-12-02 08:31:28 +01:00
2018-11-27 16:09:38 +01:00
2020-01-29 10:24:03 +01:00
2022-04-20 09:06:35 +02:00
2022-11-10 15:46:07 +01:00
2022-10-26 13:15:45 +02:00
2022-06-14 16:52:30 +02:00
2018-12-17 09:38:34 +01:00
2022-08-25 11:09:24 +02:00
2022-11-25 17:35:43 +01:00
2023-01-07 12:07:31 +01:00
2023-01-07 12:07:35 +01:00
2021-06-03 08:23:33 +02:00
2021-11-12 13:18:02 +01:00
2020-09-03 11:21:19 +02:00
2022-06-14 16:52:38 +02:00
2023-01-07 12:07:30 +01:00
2022-11-03 23:49:16 +09:00
2020-12-29 13:44:57 +01:00
2020-08-21 11:02:06 +02:00
2019-03-13 14:04:52 -07:00
2023-01-07 12:07:18 +01:00
2020-12-29 13:44:59 +01:00
2023-01-07 12:07:29 +01:00
2023-01-07 12:07:31 +01:00
2022-06-14 16:52:31 +02:00
2022-11-25 17:35:43 +01:00
2023-01-07 12:07:13 +01:00
2023-01-07 12:07:33 +01:00
2021-10-17 10:05:38 +02:00
2022-08-25 11:09:21 +02:00
2023-01-07 12:07:13 +01:00
2021-10-06 10:23:41 +02:00
2022-10-26 13:15:37 +02:00
2023-01-07 12:07:34 +01:00
2020-08-26 10:29:03 +02:00
2021-05-22 10:40:32 +02:00
2022-03-23 09:00:34 +01:00
2023-01-07 12:07:15 +01:00
2022-09-20 11:50:16 +02:00
2022-04-20 09:06:40 +02:00
2023-01-07 12:07:30 +01:00
2020-08-21 11:02:11 +02:00
2022-07-12 16:26:24 +02:00
2018-12-21 14:11:31 +01:00
2022-08-25 11:09:23 +02:00
2020-06-03 08:16:42 +02:00
2019-07-10 09:55:38 +02:00
2023-01-07 12:07:30 +01:00
2019-11-06 12:18:04 +01:00
2020-10-01 20:40:12 +02:00
2022-11-25 17:35:43 +01:00
2023-01-07 12:07:26 +01:00
2018-02-25 11:05:55 +01:00
2020-06-30 15:38:35 -04:00
2017-07-05 14:40:26 +02:00
2018-02-28 10:18:33 +01:00
2019-03-27 14:13:04 +09:00
2021-04-16 11:59:07 +02:00
2019-03-13 14:04:58 -07:00
2020-10-14 09:48:13 +02:00
2022-06-06 08:19:46 +02:00
2018-01-31 12:55:52 +01:00
2021-12-08 08:45:06 +01:00
2022-03-02 11:32:07 +01:00
2022-06-14 16:52:34 +02:00
2022-10-26 13:15:34 +02:00
2017-09-20 08:20:01 +02:00
2017-09-20 08:19:59 +02:00
2023-01-07 12:07:14 +01:00
2020-01-12 11:24:13 +01:00
2018-02-22 15:43:48 +01:00
2017-07-21 07:42:22 +02:00
2017-10-18 09:35:39 +02:00
2022-11-25 17:35:43 +01:00
2021-08-26 08:37:29 -04:00
2018-02-17 13:21:15 +01:00
2020-03-20 09:07:44 +01:00
2021-08-15 13:01:03 +02:00
2023-01-07 12:07:35 +01:00
2019-06-11 12:22:49 +02:00
2020-01-04 13:41:06 +01:00
2021-03-24 10:59:25 +01:00
2021-07-20 16:21:16 +02:00
2021-12-14 10:04:48 +01:00
2019-06-11 12:22:45 +02:00
2017-06-14 15:06:01 +02:00
2022-02-23 11:56:39 +01:00
2019-09-06 10:19:37 +02:00
2023-01-07 12:07:13 +01:00