]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
SUNRPC: Handle ENOMEM in call_transmit_status()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 7 Apr 2022 03:18:57 +0000 (23:18 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:59:41 +0000 (11:59 +0200)
commit5ec31d3015f15a66e711b5de25773ec429deeed0
tree16cf498519e58c897f9ece9b54e60474bb03707a
parent783341f7cebb4c6b77f12ff3da78b5d47e75d0bc
SUNRPC: Handle ENOMEM in call_transmit_status()

BugLink: https://bugs.launchpad.net/bugs/1969107
[ Upstream commit d3c15033b240767d0287f1c4a529cbbe2d5ded8a ]

Both call_transmit() and call_bc_transmit() can now return ENOMEM, so
let's make sure that we handle the errors gracefully.

Fixes: 0472e4766049 ("SUNRPC: Convert socket page send code to use iov_iter()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 03ac680dacf9344036fe96d2102574bc5105cb8f)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/sunrpc/clnt.c