Patch "Revert "SUNRPC: Remove unreachable error condition"" has been added to the 5.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Revert "SUNRPC: Remove unreachable error condition"

to the 5.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     revert-sunrpc-remove-unreachable-error-condition.patch
and it can be found in the queue-5.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 93003412bd5e65279452413ebd66afc91837eb34
Author: Dan Aloni <dan.aloni@xxxxxxxxxxxx>
Date:   Thu Sep 8 17:08:51 2022 +0300

    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@xxxxxxxxxxxx>
    Signed-off-by: Trond Myklebust <trond.myklebust@xxxxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index c1a01947530f..db8c0de1de42 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -2858,6 +2858,9 @@ int rpc_clnt_test_and_add_xprt(struct rpc_clnt *clnt,
 
 	task = rpc_call_null_helper(clnt, xprt, NULL, RPC_TASK_ASYNC,
 			&rpc_cb_add_xprt_call_ops, data);
+	if (IS_ERR(task))
+		return PTR_ERR(task);
+
 	data->xps->xps_nunique_destaddr_xprts++;
 	rpc_put_task(task);
 success:



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux