mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-01 18:21:29 +00:00
ksmbd: reorganize ksmbd_iov_pin_rsp()
[ Upstream commit1819a90429] If ksmbd_iov_pin_rsp fail, io vertor should be rollback. This patch moves memory allocations to before setting the io vector to avoid rollbacks. Fixes:e2b76ab8b5("ksmbd: add support for read compound") Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
1d95c5a541
commit
533e6dc446
1 changed files with 22 additions and 21 deletions
Loading…
Add table
Add a link
Reference in a new issue