]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Ensure rpc_run_task() cannot fail in nfs_async_rename()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 7 Apr 2022 02:34:35 +0000 (22:34 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 7 Apr 2022 20:20:00 +0000 (16:20 -0400)
commit9eaff8d3e8b5e1fc2981feba7ed8f02546e0bd50
tree957540ea6caef6517e13590b59230bf549007acd
parenta315815c1a3db18b45cb4505f06f3e19820a5b42
NFS: Ensure rpc_run_task() cannot fail in nfs_async_rename()

Ensure the call to rpc_run_task() cannot fail by preallocating the
rpc_task.

Fixes: 5543d8f2d30f ("NFS: Fix memory allocation in rpc_alloc_task()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/unlink.c
include/linux/nfs_xdr.h