Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23
b: refs/heads/master
c: 6775cab
h: refs/heads/master
i:
  21: 6b7fccc
  19: b77e0af
  15: e378582
v: v3
  • Loading branch information
Herbert Xu authored and Linus Torvalds committed Apr 16, 2005
1 parent 29a4e73 commit ff27717
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 2a27805127aee1e7e62854bcf9ca8c355c23b73e
refs/heads/master: 6775cab98b89b2caa10dce4b07e2c81999e45517
6 changes: 4 additions & 2 deletions trunk/net/core/dst.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,15 @@ struct dst_entry *dst_destroy(struct dst_entry * dst)

dst = child;
if (dst) {
int nohash = dst->flags & DST_NOHASH;

if (atomic_dec_and_test(&dst->__refcnt)) {
/* We were real parent of this dst, so kill child. */
if (dst->flags&DST_NOHASH)
if (nohash)
goto again;
} else {
/* Child is still referenced, return it for freeing. */
if (dst->flags&DST_NOHASH)
if (nohash)
return dst;
/* Child is still in his hash table */
}
Expand Down

0 comments on commit ff27717

Please sign in to comment.