projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9c241d
)
ksmbd: fix wrong compression context size
author
Namjae Jeon
<namjae.jeon@samsung.com>
Fri, 16 Jul 2021 05:51:30 +0000
(14:51 +0900)
committer
Namjae Jeon
<namjae.jeon@samsung.com>
Mon, 19 Jul 2021 07:19:58 +0000
(16:19 +0900)
Use smb2_compression_ctx instead of smb2_encryption_neg_context.
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/smb2pdu.c
patch
|
blob
|
history
diff --git
a/fs/ksmbd/smb2pdu.c
b/fs/ksmbd/smb2pdu.c
index
c1a5945
..
f9e6e2b
100644
(file)
--- a/
fs/ksmbd/smb2pdu.c
+++ b/
fs/ksmbd/smb2pdu.c
@@
-924,7
+924,7
@@
static int decode_compress_ctxt(struct ksmbd_conn *conn,
* Return compression context size in request.
* So need to plus extra number of CompressionAlgorithms size.
*/
- return sizeof(struct smb2_
encryption_neg_context
) +
+ return sizeof(struct smb2_
compression_ctx
) +
((algo_cnt - 1) * 2);
}