Skip to content

Commit

Permalink
ah: Don't return NET_XMIT_DROP on input.
Browse files Browse the repository at this point in the history
When the ahash driver returns -EBUSY, AH4/6 input functions return
NET_XMIT_DROP, presumably copied from the output code path.  But
returning transmit codes on input doesn't make a lot of sense.
Since NET_XMIT_DROP is a positive int, this gets interpreted as
the next header type (i.e., success).  As that can only end badly,
remove the check.

Signed-off-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Nick Bowler authored and David S. Miller committed Nov 12, 2011
1 parent 1e49570 commit 4b90a60
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions net/ipv4/ah4.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,6 @@ static int ah_input(struct xfrm_state *x, struct sk_buff *skb)
if (err == -EINPROGRESS)
goto out;

if (err == -EBUSY)
err = NET_XMIT_DROP;
goto out_free;
}

Expand Down
2 changes: 0 additions & 2 deletions net/ipv6/ah6.c
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,6 @@ static int ah6_input(struct xfrm_state *x, struct sk_buff *skb)
if (err == -EINPROGRESS)
goto out;

if (err == -EBUSY)
err = NET_XMIT_DROP;
goto out_free;
}

Expand Down

0 comments on commit 4b90a60

Please sign in to comment.