Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134764
b: refs/heads/master
c: f3fbbe0
h: refs/heads/master
v: v3
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Feb 27, 2009
1 parent 35e2096 commit 700d4e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 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: acb5d75b9bcff73d32d3471a9b3e9a4189223e48
refs/heads/master: f3fbbe0f6f6cbac4c2aa3d71d95e49cf148286d6
6 changes: 2 additions & 4 deletions trunk/net/core/neighbour.c
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,7 @@ static void neigh_timer_handler(unsigned long arg)
write_unlock(&neigh->lock);
neigh->ops->solicit(neigh, skb);
atomic_inc(&neigh->probes);
if (skb)
kfree_skb(skb);
kfree_skb(skb);
} else {
out:
write_unlock(&neigh->lock);
Expand Down Expand Up @@ -908,8 +907,7 @@ int __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb)
neigh->updated = jiffies;
write_unlock_bh(&neigh->lock);

if (skb)
kfree_skb(skb);
kfree_skb(skb);
return 1;
}
} else if (neigh->nud_state & NUD_STALE) {
Expand Down
3 changes: 1 addition & 2 deletions trunk/net/core/skbuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1208,8 +1208,7 @@ unsigned char *__pskb_pull_tail(struct sk_buff *skb, int delta)
insp = list;
}
if (!pskb_pull(list, eat)) {
if (clone)
kfree_skb(clone);
kfree_skb(clone);
return NULL;
}
break;
Expand Down

0 comments on commit 700d4e0

Please sign in to comment.