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