patch-2.1.66 linux/net/sunrpc/clnt.c
Next file: linux/net/sunrpc/xprt.c
Previous file: linux/net/netlink.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Tue Nov 25 12:54:33 1997
- Orig file:
v2.1.65/linux/net/sunrpc/clnt.c
- Orig date:
Wed Oct 15 16:04:24 1997
diff -u --recursive --new-file v2.1.65/linux/net/sunrpc/clnt.c linux/net/sunrpc/clnt.c
@@ -338,8 +338,10 @@
} else {
task->tk_action = NULL;
}
- if (!task->tk_rqstp)
+ if (!task->tk_rqstp) {
+ printk("RPC: task has no request, exit EIO\n");
rpc_exit(task, -EIO);
+ }
}
/*
@@ -415,6 +417,7 @@
/* Encode header and provided arguments */
encode = rpcproc_encode(clnt, task->tk_proc);
if (!(p = call_header(task))) {
+ printk("RPC: call_header failed, exit EIO\n");
rpc_exit(task, -EIO);
} else
if ((status = encode(req, p, task->tk_argp)) < 0) {
@@ -749,6 +752,7 @@
task->tk_action = call_encode;
return NULL;
}
+ printk("RPC: garbage, exit EIO\n");
rpc_exit(task, -EIO);
return NULL;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov