]> git.itanic.dy.fi Git - linux-stable/commit
Revert "SUNRPC: Remove unreachable error condition"
authorDan Aloni <dan.aloni@vastdata.com>
Thu, 8 Sep 2022 14:08:51 +0000 (17:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Sep 2022 12:14:02 +0000 (14:14 +0200)
commitc60087415670a693d2e72848110a522a2d3cf34d
treef6637fd9521eccec2b11af7bd36bb7e5979ca132
parent4d9f296e78b07924833bc1226c0536072f29cf90
Revert "SUNRPC: Remove unreachable error condition"

[ Upstream commit 13bd9014180425f5a35eaf3735971d582c299292 ]

This reverts commit efe57fd58e1cb77f9186152ee12a8aa4ae3348e0.

The assumption that it is impossible to return an ERR pointer from
rpc_run_task() no longer holds due to commit 25cf32ad5dba ("SUNRPC:
Handle allocation failure in rpc_new_task()").

Fixes: 25cf32ad5dba ('SUNRPC: Handle allocation failure in rpc_new_task()')
Fixes: efe57fd58e1c ('SUNRPC: Remove unreachable error condition')
Signed-off-by: Dan Aloni <dan.aloni@vastdata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/clnt.c