Skip to content

Commit

Permalink
tcp: correct kcalloc usage
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Milton Miller authored and davem330 committed Jul 10, 2008
1 parent 4edc2f3 commit 3d8ea1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/tcp_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 3d8ea1f

Please sign in to comment.