Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112035
b: refs/heads/master
c: 2b4209e
h: refs/heads/master
i:
  112033: 577803a
  112031: 68fc038
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Oct 7, 2008
1 parent 843e04e commit a83bdc7
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 7b43ccecc77480353a5657d993d671cae9e94efd
refs/heads/master: 2b4209e4b7ba9c7d70910a665ae4b60d49b75fcd
6 changes: 4 additions & 2 deletions trunk/net/ipv6/proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ snmp6_seq_show_item(struct seq_file *seq, void **mib, struct snmp_mib *itemlist)

static int snmp6_seq_show(struct seq_file *seq, void *v)
{
struct net *net = (struct net *)seq->private;

snmp6_seq_show_item(seq, (void **)ipv6_statistics, snmp6_ipstats_list);
snmp6_seq_show_item(seq, (void **)icmpv6_statistics, snmp6_icmp6_list);
snmp6_seq_show_icmpv6msg(seq, (void **)icmpv6msg_statistics);
Expand All @@ -185,15 +187,15 @@ static int snmp6_seq_show(struct seq_file *seq, void *v)

static int snmp6_seq_open(struct inode *inode, struct file *file)
{
return single_open(file, snmp6_seq_show, NULL);
return single_open_net(inode, file, snmp6_seq_show);
}

static const struct file_operations snmp6_seq_fops = {
.owner = THIS_MODULE,
.open = snmp6_seq_open,
.read = seq_read,
.llseek = seq_lseek,
.release = single_release,
.release = single_release_net,
};

static int snmp6_dev_seq_show(struct seq_file *seq, void *v)
Expand Down

0 comments on commit a83bdc7

Please sign in to comment.