blob: 593bca0df8550ab683dbeba7bc54e0ebac460719 [file] [log] [blame]
developera9570d22023-01-05 20:29:35 +08001diff -Naur a/feeds/packages/kernel/ksmbd/patches/02-sess_user_check.patch b/feeds/packages/kernel/ksmbd/patches/02-sess_user_check.patch
2--- a/feeds/packages/kernel/ksmbd/patches/02-sess_user_check.patch 1970-01-01 08:00:00.000000000 +0800
3+++ b/feeds/packages/kernel/ksmbd/patches/02-sess_user_check.patch 2023-01-05 19:52:08.668863747 +0800
4@@ -0,0 +1,13 @@
5+diff -Naur a/smb1pdu.c b/smb1pdu.c
6+--- a/smb1pdu.c 2023-01-05 19:46:23.861535362 +0800
7++++ b/smb1pdu.c 2023-01-05 19:46:11.540987831 +0800
8+@@ -322,7 +322,8 @@
9+ /* setting CifsExiting here may race with start_tcp_sess */
10+ ksmbd_conn_set_need_reconnect(work);
11+
12+- ksmbd_free_user(sess->user);
13++ if (sess && sess->user)
14++ ksmbd_free_user(sess->user);
15+ sess->user = NULL;
16+
17+ ksmbd_conn_wait_idle(conn);