clnt_bck.c: Fix the "glue" for the nfsrdma.ko module

Without this patch, the code failed to acquire the error
return for clnt_bck_rdma_send() and could use "error" uninitialized.

No semantics change for non-RDMA NFS service.

MFC after:	3 months
Fixes:	7144a1d58c ("nfsd: Add glue for the nfsrdma.ko module")
This commit is contained in:
Rick Macklem committed 2026-09-18 17:39:27 -07:00
1 parent 62c80d76f7
commit ef98d08040
1 file changed
+2 -1
+2 -1
View File
@@ -303,6 +303,7 @@ call_again:
TAILQ_INSERT_TAIL(&ct->ct_pending, cr, cr_link);
mtx_unlock(&ct->ct_lock);
error = 0; /* Keep compilers happy. */
if (xprt->xp_socket != NULL) {
/* Handle TCP sockets. */
/* For RPC-over-TLS, copy mrep to a chain of ext_pgs. */
@@ -339,7 +340,7 @@ call_again:
} else {
/* Handle RDMA. */
if (clnt_bck_rdma_send != NULL) {
clnt_bck_rdma_send(xprt, mreq);
error = clnt_bck_rdma_send(xprt, mreq);
mreq = NULL;
} else
error = ENOTCONN;