aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/hamradio/bpqether.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/hamradio/bpqether.c b/drivers/net/hamradio/bpqether.c
index 656f2789c9ba..cc0ee93669ea 100644
--- a/drivers/net/hamradio/bpqether.c
+++ b/drivers/net/hamradio/bpqether.c
@@ -413,12 +413,12 @@ static void *bpq_seq_next(struct seq_file *seq, void *v, loff_t *pos)
413 ++*pos; 413 ++*pos;
414 414
415 if (v == SEQ_START_TOKEN) 415 if (v == SEQ_START_TOKEN)
416 p = bpq_devices.next; 416 p = rcu_dereference(bpq_devices.next);
417 else 417 else
418 p = ((struct bpqdev *)v)->bpq_list.next; 418 p = rcu_dereference(((struct bpqdev *)v)->bpq_list.next);
419 419
420 return (p == &bpq_devices) ? NULL 420 return (p == &bpq_devices) ? NULL
421 : rcu_dereference(list_entry(p, struct bpqdev, bpq_list)); 421 : list_entry(p, struct bpqdev, bpq_list);
422} 422}
423 423
424static void bpq_seq_stop(struct seq_file *seq, void *v) 424static void bpq_seq_stop(struct seq_file *seq, void *v)