diff options
Diffstat (limited to 'net/packet/af_packet.c')
-rw-r--r-- | net/packet/af_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index b5989c6ee551..131545a06f05 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -1353,7 +1353,7 @@ static int packet_rcv_fanout(struct sk_buff *skb, struct net_device *dev, | |||
1353 | struct packet_type *pt, struct net_device *orig_dev) | 1353 | struct packet_type *pt, struct net_device *orig_dev) |
1354 | { | 1354 | { |
1355 | struct packet_fanout *f = pt->af_packet_priv; | 1355 | struct packet_fanout *f = pt->af_packet_priv; |
1356 | unsigned int num = f->num_members; | 1356 | unsigned int num = READ_ONCE(f->num_members); |
1357 | struct packet_sock *po; | 1357 | struct packet_sock *po; |
1358 | unsigned int idx; | 1358 | unsigned int idx; |
1359 | 1359 | ||