diff options
| -rw-r--r-- | include/net/xfrm.h | 2 | ||||
| -rw-r--r-- | net/ipv6/xfrm6_mode_ro.c | 2 | ||||
| -rw-r--r-- | net/xfrm/xfrm_user.c | 4 |
3 files changed, 3 insertions, 5 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 329de412c0ba..311bbd113aa7 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h | |||
| @@ -183,7 +183,7 @@ struct xfrm_state | |||
| 183 | struct timer_list timer; | 183 | struct timer_list timer; |
| 184 | 184 | ||
| 185 | /* Last used time */ | 185 | /* Last used time */ |
| 186 | u64 lastused; | 186 | unsigned long lastused; |
| 187 | 187 | ||
| 188 | /* Reference to data common to all the instances of this | 188 | /* Reference to data common to all the instances of this |
| 189 | * transformer. */ | 189 | * transformer. */ |
diff --git a/net/ipv6/xfrm6_mode_ro.c b/net/ipv6/xfrm6_mode_ro.c index 4a01cb3c370b..63d5d493098a 100644 --- a/net/ipv6/xfrm6_mode_ro.c +++ b/net/ipv6/xfrm6_mode_ro.c | |||
| @@ -54,9 +54,7 @@ static int xfrm6_ro_output(struct xfrm_state *x, struct sk_buff *skb) | |||
| 54 | __skb_pull(skb, hdr_len); | 54 | __skb_pull(skb, hdr_len); |
| 55 | memmove(ipv6_hdr(skb), iph, hdr_len); | 55 | memmove(ipv6_hdr(skb), iph, hdr_len); |
| 56 | 56 | ||
| 57 | spin_lock_bh(&x->lock); | ||
| 58 | x->lastused = get_seconds(); | 57 | x->lastused = get_seconds(); |
| 59 | spin_unlock_bh(&x->lock); | ||
| 60 | 58 | ||
| 61 | return 0; | 59 | return 0; |
| 62 | } | 60 | } |
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index c4f6419b1769..6424e5360511 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
| @@ -1986,8 +1986,8 @@ static inline size_t xfrm_sa_len(struct xfrm_state *x) | |||
| 1986 | if (x->coaddr) | 1986 | if (x->coaddr) |
| 1987 | l += nla_total_size(sizeof(*x->coaddr)); | 1987 | l += nla_total_size(sizeof(*x->coaddr)); |
| 1988 | 1988 | ||
| 1989 | /* Must count this as this may become non-zero behind our back. */ | 1989 | /* Must count x->lastused as it may become non-zero behind our back. */ |
| 1990 | l += nla_total_size(sizeof(x->lastused)); | 1990 | l += nla_total_size(sizeof(u64)); |
| 1991 | 1991 | ||
| 1992 | return l; | 1992 | return l; |
| 1993 | } | 1993 | } |
