Message ID | 1434580149-3095-113-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 01176f0..758a85d 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -917,6 +917,10 @@ static int ip_error(struct sk_buff *skb) bool send; int code; + /* IP on this device is disabled. */ + if (!in_dev) + goto out; + net = dev_net(rt->dst.dev); if (!IN_DEV_FORWARD(in_dev)) { switch (rt->dst.error) {