]> err.no Git - linux-2.6/commitdiff
tcp: correct kcalloc usage
authorMilton Miller <miltonm@bga.com>
Thu, 10 Jul 2008 23:51:32 +0000 (16:51 -0700)
committerDavid 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

index 5ff0ce6e9d39d25538f5c98dff986231fbaebcc9..7ddc30f0744ff13afe250c37f000fe46d144efcc 100644 (file)
@@ -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;