diff options
author | Milton Miller <miltonm@bga.com> | 2008-07-10 16:51:32 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-10 16:51:32 -0700 |
commit | 3d8ea1fd7001f39b5cc0ad2ff51696292ea3cfbf (patch) | |
tree | 3bdbd8c55e0dd16e01ff8585aa417e10d2119f44 /net/ipv4/tcp_probe.c | |
parent | 4edc2f3416438a05b83a677ae7b1a78b3ca22bb9 (diff) | |
download | kernel_samsung_tuna-3d8ea1fd7001f39b5cc0ad2ff51696292ea3cfbf.zip kernel_samsung_tuna-3d8ea1fd7001f39b5cc0ad2ff51696292ea3cfbf.tar.gz kernel_samsung_tuna-3d8ea1fd7001f39b5cc0ad2ff51696292ea3cfbf.tar.bz2 |
tcp: correct kcalloc usage
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>
Diffstat (limited to 'net/ipv4/tcp_probe.c')
-rw-r--r-- | net/ipv4/tcp_probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c index 5ff0ce6..7ddc30f 100644 --- 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; |