mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-24 19:10:26 +00:00
ksmbd: use __GFP_RETRY_MAYFAIL
[ Upstream commit0066f623bc] Prefer to report ENOMEM rather than incur the oom for allocations in ksmbd. __GFP_NORETRY could not achieve that, It would fail the allocations just too easily. __GFP_RETRY_MAYFAIL will keep retrying the allocation until there is no more progress and fail the allocation instead go OOM and let the caller to deal with it. Signed-off-by: Namjae Jeon <linkinjeon@kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com> Stable-dep-of:21a4e47578("ksmbd: fix use-after-free in __smb2_lease_break_noti()") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
60cb4dfcf7
commit
0772765ac8
24 changed files with 126 additions and 119 deletions
Loading…
Add table
Add a link
Reference in a new issue