aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/loopback.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/loopback.c')
-rw-r--r--drivers/net/loopback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c
index 1bc654a73c47..c9f65574378f 100644
--- a/drivers/net/loopback.c
+++ b/drivers/net/loopback.c
@@ -207,7 +207,7 @@ static __net_init int loopback_net_init(struct net *net)
207out_free_netdev: 207out_free_netdev:
208 free_netdev(dev); 208 free_netdev(dev);
209out: 209out:
210 if (net == &init_net) 210 if (net_eq(net, &init_net))
211 panic("loopback: Failed to register netdevice: %d\n", err); 211 panic("loopback: Failed to register netdevice: %d\n", err);
212 return err; 212 return err;
213} 213}