git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
net
/
sunrpc
/
stats.c
diff --git
a/net/sunrpc/stats.c
b/net/sunrpc/stats.c
index
bd98124
..
15c2db2
100644
(file)
--- a/
net/sunrpc/stats.c
+++ b/
net/sunrpc/stats.c
@@
-114,8
+114,13
@@
void svc_seq_show(struct seq_file *seq, const struct svc_stat *statp) {
*/
struct rpc_iostats *rpc_alloc_iostats(struct rpc_clnt *clnt)
{
*/
struct rpc_iostats *rpc_alloc_iostats(struct rpc_clnt *clnt)
{
+ unsigned int ops = clnt->cl_maxproc;
+ size_t size = ops * sizeof(struct rpc_iostats);
struct rpc_iostats *new;
struct rpc_iostats *new;
- new = kcalloc(clnt->cl_maxproc, sizeof(struct rpc_iostats), GFP_KERNEL);
+
+ new = kmalloc(size, GFP_KERNEL);
+ if (new)
+ memset(new, 0 , size);
return new;
}
EXPORT_SYMBOL(rpc_alloc_iostats);
return new;
}
EXPORT_SYMBOL(rpc_alloc_iostats);