Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134316
b: refs/heads/master
c: d73f080
h: refs/heads/master
v: v3
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Feb 7, 2009
1 parent 9bbe34e commit 65b9d85
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 910d30b704542b49f83881a4832d8414c6c3d9c3
refs/heads/master: d73f08011bc30c03a2bcb1ccd880e4be84aea269
16 changes: 8 additions & 8 deletions trunk/net/ipv6/ndisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1538,13 +1538,10 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
if (rt->rt6i_flags & RTF_GATEWAY) {
ND_PRINTK2(KERN_WARNING
"ICMPv6 Redirect: destination is not a neighbour.\n");
dst_release(dst);
return;
}
if (!xrlim_allow(dst, 1*HZ)) {
dst_release(dst);
return;
goto release;
}
if (!xrlim_allow(dst, 1*HZ))
goto release;

if (dev->addr_len) {
read_lock_bh(&neigh->lock);
Expand All @@ -1570,8 +1567,7 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
ND_PRINTK0(KERN_ERR
"ICMPv6 Redirect: %s() failed to allocate an skb.\n",
__func__);
dst_release(dst);
return;
goto release;
}

skb_reserve(buff, LL_RESERVED_SPACE(dev));
Expand Down Expand Up @@ -1631,6 +1627,10 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,

if (likely(idev != NULL))
in6_dev_put(idev);
return;

release:
dst_release(dst);
}

static void pndisc_redo(struct sk_buff *skb)
Expand Down

0 comments on commit 65b9d85

Please sign in to comment.