Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78111
b: refs/heads/master
c: d26f398
h: refs/heads/master
i:
  78109: cd793ba
  78107: 09914be
  78103: 50c848c
  78095: 02301be
  78079: c5974ca
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jan 28, 2008
1 parent 2c9cc9a commit a50e774
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 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: 0ebea8ef3559b545c37b016f44e84c3b33e47c39
refs/heads/master: d26f398400311982d2433debae85746c348b7d58
2 changes: 1 addition & 1 deletion trunk/include/net/xfrm.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ struct xfrm_state
struct timer_list timer;

/* Last used time */
u64 lastused;
unsigned long lastused;

/* Reference to data common to all the instances of this
* transformer. */
Expand Down
2 changes: 0 additions & 2 deletions trunk/net/ipv6/xfrm6_mode_ro.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ static int xfrm6_ro_output(struct xfrm_state *x, struct sk_buff *skb)
__skb_pull(skb, hdr_len);
memmove(ipv6_hdr(skb), iph, hdr_len);

spin_lock_bh(&x->lock);
x->lastused = get_seconds();
spin_unlock_bh(&x->lock);

return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/xfrm/xfrm_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -1986,8 +1986,8 @@ static inline size_t xfrm_sa_len(struct xfrm_state *x)
if (x->coaddr)
l += nla_total_size(sizeof(*x->coaddr));

/* Must count this as this may become non-zero behind our back. */
l += nla_total_size(sizeof(x->lastused));
/* Must count x->lastused as it may become non-zero behind our back. */
l += nla_total_size(sizeof(u64));

return l;
}
Expand Down

0 comments on commit a50e774

Please sign in to comment.