diff options
Diffstat (limited to 'net/packet')
-rw-r--r-- | net/packet/af_packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 485af5691d64..43e49f46ad43 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -1878,7 +1878,7 @@ static void *packet_seq_start(struct seq_file *seq, loff_t *pos) | |||
1878 | 1878 | ||
1879 | static void *packet_seq_next(struct seq_file *seq, void *v, loff_t *pos) | 1879 | static void *packet_seq_next(struct seq_file *seq, void *v, loff_t *pos) |
1880 | { | 1880 | { |
1881 | struct net *net = seq->private; | 1881 | struct net *net = seq_file_net(seq); |
1882 | ++*pos; | 1882 | ++*pos; |
1883 | return (v == SEQ_START_TOKEN) | 1883 | return (v == SEQ_START_TOKEN) |
1884 | ? sk_head(&net->packet.sklist) | 1884 | ? sk_head(&net->packet.sklist) |
@@ -1887,7 +1887,7 @@ static void *packet_seq_next(struct seq_file *seq, void *v, loff_t *pos) | |||
1887 | 1887 | ||
1888 | static void packet_seq_stop(struct seq_file *seq, void *v) | 1888 | static void packet_seq_stop(struct seq_file *seq, void *v) |
1889 | { | 1889 | { |
1890 | struct net *net = seq->private; | 1890 | struct net *net = seq_file_net(seq); |
1891 | read_unlock(&net->packet.sklist_lock); | 1891 | read_unlock(&net->packet.sklist_lock); |
1892 | } | 1892 | } |
1893 | 1893 | ||