]> 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)
commita315815c1a3db18b45cb4505f06f3e19820a5b42
treee56e8b3055ce8036fae37fe05525b7ae3efdf076
parent5e5f88f8d445ae63961b4ef13c5220cf9d2ee96b
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: 5543d8f2d30f ("NFS: Fix memory allocation in rpc_alloc_task()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c