Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78559
b: refs/heads/master
c: 910ef70
h: refs/heads/master
i:
  78557: 7c7dfa8
  78555: 62fa17d
  78551: fd5c3ff
  78543: ee59e28
  78527: 01a2c58
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jan 28, 2008
1 parent eedf89c commit 98585fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 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: 33b8e776056202aceaf4c90f465d0f4ee53432ac
refs/heads/master: 910ef70aa301eb018255683499b8e51426c213a0
18 changes: 6 additions & 12 deletions trunk/net/xfrm/xfrm_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@ static int xfrm_state_check_space(struct xfrm_state *x, struct sk_buff *skb)
return 0;
}

static int xfrm_state_check(struct xfrm_state *x, struct sk_buff *skb)
{
int err = xfrm_state_check_expire(x);
if (err < 0)
goto err;
err = xfrm_state_check_space(x, skb);
err:
return err;
}

static int xfrm_output_one(struct sk_buff *skb, int err)
{
struct dst_entry *dst = skb->dst;
Expand All @@ -52,12 +42,16 @@ static int xfrm_output_one(struct sk_buff *skb, int err)
goto resume;

do {
err = xfrm_state_check_space(x, skb);
if (err)
goto error_nolock;

err = x->outer_mode->output(x, skb);
if (err)
goto error;
goto error_nolock;

spin_lock_bh(&x->lock);
err = xfrm_state_check(x, skb);
err = xfrm_state_check_expire(x);
if (err)
goto error;

Expand Down

0 comments on commit 98585fe

Please sign in to comment.