From: Milton Miller <miltonm@bga.com>
Date: Thu, 10 Jul 2008 23:51:32 +0000 (-0700)
Subject: tcp: correct kcalloc usage
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3d8ea1fd7001f39b5cc0ad2ff51696292ea3cfbf;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git

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>
---

diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c
index 5ff0ce6e9d39..7ddc30f0744f 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;