]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Handle allocation failure in rpc_new_task()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 7 Apr 2022 02:36:19 +0000 (22:36 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 7 Apr 2022 20:20:00 +0000 (16:20 -0400)
commit4c22bccac1fdaaf1151fe647aacac8a8c23949f4
treecb340ece410fea8667859d87484749fc26e82252
parent9eaff8d3e8b5e1fc2981feba7ed8f02546e0bd50
SUNRPC: Handle allocation failure in rpc_new_task()

If the call to rpc_alloc_task() fails, then ensure that the calldata is
released, and that rpc_run_task() and rpc_run_bc_task() bail out early.

Reported-by: NeilBrown <neilb@suse.de>
Fixes: 5543d8f2d30f ("NFS: Fix memory allocation in rpc_alloc_task()")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/clnt.c
net/sunrpc/sched.c