projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4edc2f3
)
tcp: correct kcalloc usage
author
Milton Miller
<miltonm@bga.com>
Thu, 10 Jul 2008 23:51:32 +0000
(16:51 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 10 Jul 2008 23:51:32 +0000
(16:51 -0700)
kcalloc is supposed to be called with the count as its first argument and
the element size as the second.
Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_probe.c
patch
|
blob
|
history
diff --git
a/net/ipv4/tcp_probe.c
b/net/ipv4/tcp_probe.c
index
5ff0ce6
..
7ddc30f
100644
(file)
--- a/
net/ipv4/tcp_probe.c
+++ b/
net/ipv4/tcp_probe.c
@@
-224,7
+224,7
@@
static __init int tcpprobe_init(void)
if (bufsize < 0)
return -EINVAL;
- tcp_probe.log = kcalloc(
sizeof(struct tcp_log), bufsize
, GFP_KERNEL);
+ tcp_probe.log = kcalloc(
bufsize, sizeof(struct tcp_log)
, GFP_KERNEL);
if (!tcp_probe.log)
goto err0;