Commit 49fd0817 authored by Trond Myklebust's avatar Trond Myklebust Committed by Zheng Zengkai
Browse files

SUNRPC: svc_tcp_sendmsg() should handle errors from xdr_alloc_bvec()

stable inclusion
from stable-v5.10.111
commit b3c00be2ff8bc7e211fb04ec42facf0e4c876800
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5GL1Z

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b3c00be2ff8bc7e211fb04ec42facf0e4c876800



--------------------------------

[ Upstream commit b056fa07 ]

The allocation is done with GFP_KERNEL, but it could still fail in a low
memory situation.

Fixes: 4a85a6a3 ("SUNRPC: Handle TCP socket sends with kernel_sendpage() again")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent fa0241e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment