Commit 09cdf340 authored by David S. Miller's avatar David S. Miller

Cset exclude: herbert@gondor.apana.org.au|ChangeSet|20041110052404|08839

parent b4cd3f93
...@@ -484,7 +484,7 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen, ...@@ -484,7 +484,7 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen,
int scope, unsigned flags) int scope, unsigned flags)
{ {
struct inet6_ifaddr *ifa = NULL; struct inet6_ifaddr *ifa = NULL;
struct rt6_info *rt = NULL; struct rt6_info *rt;
int hash; int hash;
static spinlock_t lock = SPIN_LOCK_UNLOCKED; static spinlock_t lock = SPIN_LOCK_UNLOCKED;
int err = 0; int err = 0;
...@@ -572,10 +572,6 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen, ...@@ -572,10 +572,6 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen,
if (unlikely(err == 0)) if (unlikely(err == 0))
notifier_call_chain(&inet6addr_chain, NETDEV_UP, ifa); notifier_call_chain(&inet6addr_chain, NETDEV_UP, ifa);
else { else {
if (rt) {
dst_release(&rt->u.dst);
dst_free(&rt->u.dst);
}
kfree(ifa); kfree(ifa);
ifa = ERR_PTR(err); ifa = ERR_PTR(err);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment