]> 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)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 7 Apr 2022 20:20:01 +0000 (16:20 -0400)
commite02f91e505d42f0dcd4764cd216517ef7290b6b2
treee5d1bad92b8c8dbc1510472727173667c11bb1dc
parent3efcc7c39d36bdb28982ce59c840f675c4dc6bab
SUNRPC: svc_tcp_sendmsg() should handle errors from xdr_alloc_bvec()

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>
net/sunrpc/svcsock.c