]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: svc_tcp_sendmsg() should handle errors from xdr_alloc_bvec()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 7 Apr 2022 18:10:23 +0000 (14:10 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:59:20 +0000 (20:59 +0200)
commit91536c79125f61c713a36b15c5265b4ab09b3009
tree3ecb37e3a39544a73c08f5cd3ce01a572f403ad4
parent795d13c9520be0a55324b7470f953a595660b513
SUNRPC: svc_tcp_sendmsg() should handle errors from xdr_alloc_bvec()

[ Upstream commit e02f91e505d42f0dcd4764cd216517ef7290b6b2 ]

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

Fixes: 4208f8d45cc1 ("SUNRPC: Handle TCP socket sends with kernel_sendpage() again")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/svcsock.c