diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-12-09 01:14:38 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2009-12-09 01:14:38 -0500 |
commit | bcd6acd51f3d4d1ada201e9bc5c40a31d6d80c71 (patch) | |
tree | 2f6dffd2d3e4dd67355a224de7e7a960335a92fd /drivers/net/wan/hdlc.c | |
parent | 11c34c7deaeeebcee342cbc35e1bb2a6711b2431 (diff) | |
parent | 3ff6a468b45b5dfeb0e903e56f4eb27d34b2437c (diff) |
Merge commit 'origin/master' into next
Conflicts:
include/linux/kvm.h
Diffstat (limited to 'drivers/net/wan/hdlc.c')
-rw-r--r-- | drivers/net/wan/hdlc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wan/hdlc.c b/drivers/net/wan/hdlc.c index cc07236ea734..9937bbab938d 100644 --- a/drivers/net/wan/hdlc.c +++ b/drivers/net/wan/hdlc.c | |||
@@ -57,7 +57,7 @@ static int hdlc_rcv(struct sk_buff *skb, struct net_device *dev, | |||
57 | { | 57 | { |
58 | struct hdlc_device *hdlc = dev_to_hdlc(dev); | 58 | struct hdlc_device *hdlc = dev_to_hdlc(dev); |
59 | 59 | ||
60 | if (dev_net(dev) != &init_net) { | 60 | if (!net_eq(dev_net(dev), &init_net)) { |
61 | kfree_skb(skb); | 61 | kfree_skb(skb); |
62 | return 0; | 62 | return 0; |
63 | } | 63 | } |
@@ -102,7 +102,7 @@ static int hdlc_device_event(struct notifier_block *this, unsigned long event, | |||
102 | unsigned long flags; | 102 | unsigned long flags; |
103 | int on; | 103 | int on; |
104 | 104 | ||
105 | if (dev_net(dev) != &init_net) | 105 | if (!net_eq(dev_net(dev), &init_net)) |
106 | return NOTIFY_DONE; | 106 | return NOTIFY_DONE; |
107 | 107 | ||
108 | if (!(dev->priv_flags & IFF_WAN_HDLC)) | 108 | if (!(dev->priv_flags & IFF_WAN_HDLC)) |