diff options
Diffstat (limited to 'net/ipv4/protocol.c')
| -rw-r--r-- | net/ipv4/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/protocol.c b/net/ipv4/protocol.c index a8b4bdc27ec4..90a587cacaa4 100644 --- a/net/ipv4/protocol.c +++ b/net/ipv4/protocol.c @@ -49,7 +49,7 @@ #include <linux/igmp.h> struct net_protocol *inet_protos[MAX_INET_PROTOS]; -static spinlock_t inet_proto_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(inet_proto_lock); /* * Add a protocol handler to the hash tables |
