aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/devinet.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c
index 7f95e6e9beeb..88a22d20bf73 100644
--- a/net/ipv4/devinet.c
+++ b/net/ipv4/devinet.c
@@ -1057,9 +1057,10 @@ static int inetdev_event(struct notifier_block *this, unsigned long event,
1057 if (!in_dev) { 1057 if (!in_dev) {
1058 if (event == NETDEV_REGISTER) { 1058 if (event == NETDEV_REGISTER) {
1059 in_dev = inetdev_init(dev); 1059 in_dev = inetdev_init(dev);
1060 if (!in_dev)
1061 panic("devinet: Failed to create loopback\n");
1062 if (dev == &loopback_dev) { 1060 if (dev == &loopback_dev) {
1061 if (!in_dev)
1062 panic("devinet: "
1063 "Failed to create loopback\n");
1063 in_dev->cnf.no_xfrm = 1; 1064 in_dev->cnf.no_xfrm = 1;
1064 in_dev->cnf.no_policy = 1; 1065 in_dev->cnf.no_policy = 1;
1065 } 1066 }