Skip to content

Commit

Permalink
[IPV4]: Do not remove idev when addresses are cleared
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jun 8, 2007
1 parent 85f6038 commit 6363097
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions net/ipv4/devinet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6363097

Please sign in to comment.