Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63611
b: refs/heads/master
c: 1bcabbd
h: refs/heads/master
i:
  63609: 00fb84c
  63607: a7c64ec
v: v3
  • Loading branch information
Mariusz Kozlowski authored and David S. Miller committed Aug 3, 2007
1 parent 6f14ae4 commit 2c5943a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4487b2f657a4d204c35a7afaa45fc8569c9069ca
refs/heads/master: 1bcabbdb0bdfe8b15b05150a7857646430aaa7f8
4 changes: 2 additions & 2 deletions trunk/net/ipv4/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,16 +374,16 @@ static int rt_cache_seq_open(struct inode *inode, struct file *file)
{
struct seq_file *seq;
int rc = -ENOMEM;
struct rt_cache_iter_state *s = kmalloc(sizeof(*s), GFP_KERNEL);
struct rt_cache_iter_state *s;

s = kzalloc(sizeof(*s), GFP_KERNEL);
if (!s)
goto out;
rc = seq_open(file, &rt_cache_seq_ops);
if (rc)
goto out_kfree;
seq = file->private_data;
seq->private = s;
memset(s, 0, sizeof(*s));
out:
return rc;
out_kfree:
Expand Down

0 comments on commit 2c5943a

Please sign in to comment.