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 60e6d827436b..a996d9c43f9e 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -146,7 +146,7 @@ dev->hard_header == NULL (ll header is added by device, we cannot control it) /* List of all packet sockets. */ static HLIST_HEAD(packet_sklist); -static rwlock_t packet_sklist_lock = RW_LOCK_UNLOCKED; +static DEFINE_RWLOCK(packet_sklist_lock); static atomic_t packet_socks_nr; |
