]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4/pnfs: Handle RPC allocation errors in nfs4_proc_layoutget
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 7 Apr 2022 02:33:19 +0000 (22:33 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 7 Apr 2022 20:20:00 +0000 (16:20 -0400)
commit851f4db94563e507a83b0248fead7b289c475ccb
treee56e8b3055ce8036fae37fe05525b7ae3efdf076
parent0b21c546f14cde94f142ee2b1485acf583231010
NFSv4/pnfs: Handle RPC allocation errors in nfs4_proc_layoutget

If rpc_run_task() fails due to an allocation error, then bail out early.

Fixes: ec7b96672dbd ("NFS: Fix memory allocation in rpc_alloc_task()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c