projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
packet: read num_members once in packet_rcv_fanout()
[linux-2.6-block.git]
/
net
/
packet
/
af_packet.c
diff --git
a/net/packet/af_packet.c
b/net/packet/af_packet.c
index b5989c6ee5513904127a8ffec31d09589094c8f6..131545a06f050faf096440c892c1bc4543c7d6e9 100644
(file)
--- 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,
struct packet_type *pt, struct net_device *orig_dev)
{
struct packet_fanout *f = pt->af_packet_priv;
- unsigned int num =
f->num_members
;
+ unsigned int num =
READ_ONCE(f->num_members)
;
struct packet_sock *po;
unsigned int idx;