Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90263
b: refs/heads/master
c: 2feb27d
h: refs/heads/master
i:
  90261: 46606fc
  90259: 5585741
  90255: 2d3c62d
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Mar 24, 2008
1 parent 364737e commit 1f85673
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 84c375af0ff61e0bd15fac0aed0438640494483e
refs/heads/master: 2feb27dbe00cbb4f7d31f90acf6bd0d751dd0a50
7 changes: 4 additions & 3 deletions trunk/net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2615,7 +2615,7 @@ static int ptype_seq_show(struct seq_file *seq, void *v)

if (v == SEQ_START_TOKEN)
seq_puts(seq, "Type Device Function\n");
else {
else if (pt->dev == NULL || pt->dev->nd_net == seq_file_net(seq)) {
if (pt->type == htons(ETH_P_ALL))
seq_puts(seq, "ALL ");
else
Expand All @@ -2639,15 +2639,16 @@ static const struct seq_operations ptype_seq_ops = {

static int ptype_seq_open(struct inode *inode, struct file *file)
{
return seq_open(file, &ptype_seq_ops);
return seq_open_net(inode, file, &ptype_seq_ops,
sizeof(struct seq_net_private));
}

static const struct file_operations ptype_seq_fops = {
.owner = THIS_MODULE,
.open = ptype_seq_open,
.read = seq_read,
.llseek = seq_lseek,
.release = seq_release,
.release = seq_release_net,
};


Expand Down

0 comments on commit 1f85673

Please sign in to comment.