Skip to content

Commit

Permalink
l2tp: kzalloc with swapped params in l2tp_dfs_seq_open
Browse files Browse the repository at this point in the history
  'sparse' spotted that the parameters to kzalloc in l2tp_dfs_seq_open
were swapped.

Tested on current git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
at 1792f17  build, boots and I can see that directory,
but there again I could see /sys/kernel/debug/l2tp with it swapped; I don't have
any l2tp in use.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Dr. David Alan Gilbert authored and David S. Miller committed Nov 1, 2010
1 parent eae61ae commit 6f9b901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/l2tp/l2tp_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ static int l2tp_dfs_seq_open(struct inode *inode, struct file *file)
struct seq_file *seq;
int rc = -ENOMEM;

pd = kzalloc(GFP_KERNEL, sizeof(*pd));
pd = kzalloc(sizeof(*pd), GFP_KERNEL);
if (pd == NULL)
goto out;

Expand Down

0 comments on commit 6f9b901

Please sign in to comment.