瀏覽代碼

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>
Milton Miller 17 年之前
父節點
當前提交
3d8ea1fd70
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/ipv4/tcp_probe.c

+ 1 - 1
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;