aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/xfrm/xfrm_state.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c
index 33e982961db0..25657f57fbb0 100644
--- a/net/xfrm/xfrm_state.c
+++ b/net/xfrm/xfrm_state.c
@@ -1205,11 +1205,10 @@ int xfrm_replay_check(struct xfrm_state *x, __be32 net_seq)
1205} 1205}
1206EXPORT_SYMBOL(xfrm_replay_check); 1206EXPORT_SYMBOL(xfrm_replay_check);
1207 1207
1208void xfrm_replay_advance(struct xfrm_state *x, u32 seq) 1208void xfrm_replay_advance(struct xfrm_state *x, __be32 net_seq)
1209{ 1209{
1210 u32 diff; 1210 u32 diff;
1211 1211 u32 seq = ntohl(net_seq);
1212 seq = ntohl(seq);
1213 1212
1214 if (seq > x->replay.seq) { 1213 if (seq > x->replay.seq) {
1215 diff = seq - x->replay.seq; 1214 diff = seq - x->replay.seq;