X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Fpppoe.c;h=44e182efb3655a1b91e98977d8bbebfe41a7007c;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=672e3cd2db928f394f7ce9edb5915aa1c3cd6a00;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c index 672e3cd2d..44e182efb 100644 --- a/drivers/net/pppoe.c +++ b/drivers/net/pppoe.c @@ -86,7 +86,7 @@ static int pppoe_xmit(struct ppp_channel *chan, struct sk_buff *skb); static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb); static struct proto_ops pppoe_ops; -static rwlock_t pppoe_hash_lock = RW_LOCK_UNLOCKED; +static DEFINE_RWLOCK(pppoe_hash_lock); static struct ppp_channel_ops pppoe_chan_ops;