Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89823
b: refs/heads/master
c: c20932d
h: refs/heads/master
i:
  89821: 4fb0508
  89819: ab4a137
  89815: 5c1bc0c
  89807: cddf18b
  89791: c8b47ee
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Feb 29, 2008
1 parent 98d1602 commit 8efb693
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 39 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: 9a8c09e73bf6c8b1720b1172cdcabb14fc823cf8
refs/heads/master: c20932d2c9ba24838a102ac501bf7371b0fe0794
21 changes: 2 additions & 19 deletions trunk/net/appletalk/aarp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1033,25 +1033,8 @@ static const struct seq_operations aarp_seq_ops = {

static int aarp_seq_open(struct inode *inode, struct file *file)
{
struct seq_file *seq;
int rc = -ENOMEM;
struct aarp_iter_state *s = kmalloc(sizeof(*s), GFP_KERNEL);

if (!s)
goto out;

rc = seq_open(file, &aarp_seq_ops);
if (rc)
goto out_kfree;

seq = file->private_data;
seq->private = s;
memset(s, 0, sizeof(*s));
out:
return rc;
out_kfree:
kfree(s);
goto out;
return seq_open_private(file, &aarp_seq_ops,
sizeof(struct aarp_iter_state));
}

const struct file_operations atalk_seq_arp_fops = {
Expand Down
21 changes: 2 additions & 19 deletions trunk/net/decnet/af_decnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -2320,25 +2320,8 @@ static const struct seq_operations dn_socket_seq_ops = {

static int dn_socket_seq_open(struct inode *inode, struct file *file)
{
struct seq_file *seq;
int rc = -ENOMEM;
struct dn_iter_state *s = kmalloc(sizeof(*s), GFP_KERNEL);

if (!s)
goto out;

rc = seq_open(file, &dn_socket_seq_ops);
if (rc)
goto out_kfree;

seq = file->private_data;
seq->private = s;
memset(s, 0, sizeof(*s));
out:
return rc;
out_kfree:
kfree(s);
goto out;
return seq_open_private(file, &dn_socket_seq_ops,
sizeof(struct dn_iter_state));
}

static const struct file_operations dn_socket_seq_fops = {
Expand Down

0 comments on commit 8efb693

Please sign in to comment.