From aea1775700c596efde27fc956f017a52e851f2e0 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 19 Sep 2023 09:56:44 +0200 Subject: [PATCH] update queue-5.15/ksmbd-no-response-from-compound-read.patch --- .../ksmbd-no-response-from-compound-read.patch | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/queue-5.15/ksmbd-no-response-from-compound-read.patch b/queue-5.15/ksmbd-no-response-from-compound-read.patch index 1132504b3ef..6daf83f2876 100644 --- a/queue-5.15/ksmbd-no-response-from-compound-read.patch +++ b/queue-5.15/ksmbd-no-response-from-compound-read.patch @@ -17,13 +17,20 @@ Signed-off-by: Namjae Jeon Signed-off-by: Steve French Signed-off-by: Sasha Levin --- - fs/ksmbd/smb2pdu.c | 5 +++++ - 1 file changed, 5 insertions(+) + fs/ksmbd/smb2pdu.c | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) -diff --git a/fs/ksmbd/smb2pdu.c b/fs/ksmbd/smb2pdu.c -index f5506853ac0fa..e0b54cd70f041 100644 --- a/fs/ksmbd/smb2pdu.c +++ b/fs/ksmbd/smb2pdu.c +@@ -6245,7 +6245,7 @@ int smb2_read(struct ksmbd_work *work) + struct ksmbd_conn *conn = work->conn; + struct smb2_read_req *req; + struct smb2_read_rsp *rsp, *rsp_org; +- struct ksmbd_file *fp; ++ struct ksmbd_file *fp = NULL; + loff_t offset; + size_t length, mincount; + ssize_t nbytes = 0, remain_bytes = 0; @@ -6253,6 +6253,11 @@ int smb2_read(struct ksmbd_work *work) rsp_org = work->response_buf; @@ -36,6 +43,3 @@ index f5506853ac0fa..e0b54cd70f041 100644 if (test_share_config_flag(work->tcon->share_conf, KSMBD_SHARE_FLAG_PIPE)) { --- -2.40.1 - -- 2.47.3