diff --git a/lustre/ptlrpc/niobuf.c b/lustre/ptlrpc/niobuf.c
index d7256c2b745ac499bb23a193512ce17d0ab9b78c..55d6c1e61d7f7686a0af1b4f8e65c9e115b68a28 100644
--- a/lustre/ptlrpc/niobuf.c
+++ b/lustre/ptlrpc/niobuf.c
@@ -562,7 +562,7 @@ int ptl_send_rpc(struct ptlrpc_request *request, int noreply)
                         /* ...but the MD attach didn't succeed... */
                         request->rq_receiving_reply = 0;
                         spin_unlock(&request->rq_lock);
-                        GOTO(cleanup_me, rc -ENOMEM);
+                        GOTO(cleanup_me, rc = -ENOMEM);
                 }
 
                 CDEBUG(D_NET, "Setup reply buffer: %u bytes, xid "LPU64