summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@radix-linux.su:pub
diff options
context:
space:
mode:
authorHaoxiang Li <haoxiang_li2024@163.com>2026-06-23 04:45:38 +0300
committerSteve French <stfrench@microsoft.com>2026-06-24 18:33:51 +0300
commit1c6267a1d5cf4c73b656f8181b310cbbb3e4767b (patch)
tree6535b80c93bb91d9a0e2b102790ceb1ee26aa561 /rust/zerocopy/src/pointer/git@radix-linux.su:pub
parent2c253f230a31d4394f6f926a73f5e157ad88d347 (diff)
downloadlinux-1c6267a1d5cf4c73b656f8181b310cbbb3e4767b.tar.xz
smb: client: Fix next buffer leak in receive_encrypted_standard()
receive_encrypted_standard() allocates next_buffer before checking whether the number of compound PDUs already reached MAX_COMPOUND. If the limit check fails, the function returns immediately and the newly allocated next_buffer is not assigned to server->smallbuf/server->bigbuf, making it leaked. Move the MAX_COMPOUND check before allocating next_buffer. Fixes: b24df3e30cbf ("cifs: update receive_encrypted_standard to handle compounded responses") Cc: stable@vger.kernel.org Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@radix-linux.su:pub')
0 files changed, 0 insertions, 0 deletions