projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.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
|
blame
|
history
diff --git
a/net/ipv4/tcp_probe.c
b/net/ipv4/tcp_probe.c
index 5ff0ce6e9d39d25538f5c98dff986231fbaebcc9..7ddc30f0744ff13afe250c37f000fe46d144efcc 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;