patch-2.4.21 linux-2.4.21/net/sunrpc/svc.c

Next file: linux-2.4.21/net/sunrpc/svcsock.c
Previous file: linux-2.4.21/net/sunrpc/sunrpc_syms.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/net/sunrpc/svc.c linux-2.4.21/net/sunrpc/svc.c
@@ -333,8 +333,12 @@
 		}
 	} else {
 		dprintk("svc: calling dispatcher\n");
-		if (!versp->vs_dispatch(rqstp, statp))
+		if (!versp->vs_dispatch(rqstp, statp)) {
+			/* Release reply info */
+			if (procp->pc_release)
+				procp->pc_release(rqstp, NULL, rqstp->rq_resp);
 			goto dropit;
+		}
 	}
 
 	/* Check RPC status result */
@@ -396,7 +400,8 @@
 
 err_bad_vers:
 #ifdef RPC_PARANOIA
-	printk("svc: unknown version (%d)\n", vers);
+	if (vers)
+		printk("svc: unknown version (%d)\n", vers);
 #endif
 	serv->sv_stats->rpcbadfmt++;
 	svc_putlong(resp, rpc_prog_mismatch);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)