diff options
Diffstat (limited to 'drivers/net/hamradio/bpqether.c')
-rw-r--r-- | drivers/net/hamradio/bpqether.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/hamradio/bpqether.c b/drivers/net/hamradio/bpqether.c index fe893c91a01b..76abed9a70b1 100644 --- a/drivers/net/hamradio/bpqether.c +++ b/drivers/net/hamradio/bpqether.c | |||
@@ -186,7 +186,7 @@ static int bpq_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_ty | |||
186 | struct ethhdr *eth; | 186 | struct ethhdr *eth; |
187 | struct bpqdev *bpq; | 187 | struct bpqdev *bpq; |
188 | 188 | ||
189 | if (dev_net(dev) != &init_net) | 189 | if (!net_eq(dev_net(dev), &init_net)) |
190 | goto drop; | 190 | goto drop; |
191 | 191 | ||
192 | if ((skb = skb_share_check(skb, GFP_ATOMIC)) == NULL) | 192 | if ((skb = skb_share_check(skb, GFP_ATOMIC)) == NULL) |
@@ -552,7 +552,7 @@ static int bpq_device_event(struct notifier_block *this,unsigned long event, voi | |||
552 | { | 552 | { |
553 | struct net_device *dev = (struct net_device *)ptr; | 553 | struct net_device *dev = (struct net_device *)ptr; |
554 | 554 | ||
555 | if (dev_net(dev) != &init_net) | 555 | if (!net_eq(dev_net(dev), &init_net)) |
556 | return NOTIFY_DONE; | 556 | return NOTIFY_DONE; |
557 | 557 | ||
558 | if (!dev_is_ethdev(dev)) | 558 | if (!dev_is_ethdev(dev)) |