Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d8ea1fd authored by Milton Miller's avatar Milton Miller Committed by David S. Miller
Browse files

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: default avatarMilton Miller <miltonm@bga.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4edc2f34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;