projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85f6038
)
[IPV4]: Do not remove idev when addresses are cleared
author
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 8 Jun 2007 01:35:38 +0000
(18:35 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Fri, 8 Jun 2007 20:33:08 +0000
(13:33 -0700)
Now that we create idev before addresses are added, it no longer makes
sense to remove them when addresses are all deleted.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv4/devinet.c
b/net/ipv4/devinet.c
index fa97b96a3d89e629bb80a53a7337a772f3af45a2..abf6352f990f33ff380a27f364325b4f57153b56 100644
(file)
--- a/
net/ipv4/devinet.c
+++ b/
net/ipv4/devinet.c
@@
-327,12
+327,8
@@
static void __inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap,
}
}
- if (destroy)
{
+ if (destroy)
inet_free_ifa(ifa1);
-
- if (!in_dev->ifa_list)
- inetdev_destroy(in_dev);
- }
}
static void inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap,