diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-03-13 14:45:58 +0900 |
|---|---|---|
| committer | Steve French <stfrench@microsoft.com> | 2026-03-22 19:10:22 -0500 |
| commit | 0e55f63dd08f09651d39e1b709a91705a8a0ddcb (patch) | |
| tree | 446ce102b796e40ee385f68656f0e3881eb7b0f7 /include/linux/tc_act/git@git.tavy.me:linux.git | |
| parent | 309b44ed684496ed3f9c5715d10b899338623512 (diff) | |
ksmbd: replace hardcoded hdr2_len with offsetof() in smb2_calc_max_out_buf_len()
After this commit (e2b76ab8b5c9 "ksmbd: add support for read compound"),
response buffer management was changed to use dynamic iov array.
In the new design, smb2_calc_max_out_buf_len() expects the second
argument (hdr2_len) to be the offset of ->Buffer field in the
response structure, not a hardcoded magic number.
Fix the remaining call sites to use the correct offsetof() value.
Cc: stable@vger.kernel.org
Fixes: e2b76ab8b5c9 ("ksmbd: add support for read compound")
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'include/linux/tc_act/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
